mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cloudtrail: import botocore.exceptions in a try/except.
This commit is contained in:
parent
075ead8fb0
commit
6ae201d3b1
1 changed files with 5 additions and 1 deletions
|
@ -245,7 +245,11 @@ trail:
|
|||
|
||||
import traceback
|
||||
|
||||
from botocore.exceptions import ClientError
|
||||
try:
|
||||
from botocore.exceptions import ClientError
|
||||
except ImportError:
|
||||
# Handled in main() by imported HAS_BOTO3
|
||||
pass
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.ec2 import (boto3_conn, ec2_argument_spec, get_aws_connection_info,
|
||||
|
|
Loading…
Reference in a new issue