Skip to content

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Jan 5, 2022
1 parent 7a5a6bc commit 2f27c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/rds_instance_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@
def get_snapshot(snapshot_id):
try:
response = client.describe_db_snapshots(DBSnapshotIdentifier=snapshot_id)
except is_boto3_error_code("DBSnapshotNotFoundFault"): # pylint: disable=duplicate-except
except is_boto3_error_code("DBSnapshotNotFoundFault"):
return None
except is_boto3_error_code("DBSnapshotNotFound"): # pylint: disable=duplicate-except
return None
except (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) as e:
except (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) as e: # pylint: disable=duplicate-except
module.fail_json_aws(e, msg="Couldn't get snapshot {0}".format(snapshot_id))
return response['DBSnapshots'][0]

Expand Down

0 comments on commit 2f27c7d

Please sign in to comment.