cloudtrail: import botocore.exceptions in a try/except.

(cherry picked from commit 6ae201d3b1)
This commit is contained in:
s-hertel 2017-09-06 11:18:16 -04:00 committed by Toshio Kuratomi
parent 63b4e41d0c
commit 972fbbba22

View file

@ -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,