Skip to content

Commit

Permalink
Yet another duplicate-except warning (ansible-collections#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble authored Mar 10, 2021
1 parent 15565ec commit f0b8124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ec2_ami_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0b8124

Please sign in to comment.