Skip to content

Commit

Permalink
catch ImportError rather than Exception when testing Boto3 imports (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble authored and goneri committed Sep 21, 2022
1 parent 687b4b9 commit 8e3e219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/lambda_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@

try:
from botocore.exceptions import ClientError
except Exception:
except ImportError:
pass # caught by AnsibleAWSModule


Expand Down

0 comments on commit 8e3e219

Please sign in to comment.