From 2f27c7d846caf8cc9156c9e74c8ec370d7272c10 Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Wed, 5 Jan 2022 11:58:34 +0100 Subject: [PATCH] Fix pylint Signed-off-by: Alina Buzachis --- plugins/modules/rds_instance_snapshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/rds_instance_snapshot.py b/plugins/modules/rds_instance_snapshot.py index 0c75f761fe5..2e0ebf576cc 100644 --- a/plugins/modules/rds_instance_snapshot.py +++ b/plugins/modules/rds_instance_snapshot.py @@ -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]