mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Don't raise or catch StandardError in amazon modules
This commit is contained in:
committed by
Matt Clay
parent
5fbc5cb529
commit
5bd1bcaa2d
@@ -272,8 +272,7 @@ def main():
|
||||
|
||||
try:
|
||||
connection = connect_to_aws(boto.dynamodb2, region, **aws_connect_params)
|
||||
|
||||
except (NoAuthHandlerFound, StandardError), e:
|
||||
except (NoAuthHandlerFound, AnsibleAWSError), e:
|
||||
module.fail_json(msg=str(e))
|
||||
|
||||
state = module.params.get('state')
|
||||
|
||||
Reference in New Issue
Block a user