From f0b8124b41d436a0c8b768023156be26f1a034c1 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Wed, 10 Mar 2021 07:13:38 +0100 Subject: [PATCH] Yet another duplicate-except warning (#296) --- plugins/modules/ec2_ami_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/ec2_ami_info.py b/plugins/modules/ec2_ami_info.py index f2b5255636d..11c1bb6e687 100644 --- a/plugins/modules/ec2_ami_info.py +++ b/plugins/modules/ec2_ami_info.py @@ -257,7 +257,7 @@ def list_ec2_images(ec2_client, module): except is_boto3_error_code('AuthFailure'): # describing launch permissions of images owned by others is not permitted, but shouldn't cause failures pass - except (ClientError, BotoCoreError) as err: + except (ClientError, BotoCoreError) as err: # pylint: disable=duplicate-except module.fail_json_aws(err, 'Failed to describe AMI') images.sort(key=lambda e: e.get('creation_date', '')) # it may be possible that creation_date does not always exist