Skip to content

Commit 4179699

Browse files
committed
instrument to determine git action error
1 parent bfcc835 commit 4179699

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bulk_importer/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ def process_certificate(payload):
179179
print("Certificate [" + fingerprint + "] not found in IoT Core. Importing.")
180180

181181
try:
182+
print("Importing certificate.")
182183
response = iot_client.register_certificate_without_ca(certificatePem=certificateText.decode('ascii'),
183184
status='ACTIVE')
184-
185+
print("Certificate imported.")
185186
return response.get("certificateId")
186187
except botocore.exceptions.ClientError as e:
187188
if e.response['Error']['Code'] == 'ThrottlingException':
@@ -191,7 +192,7 @@ def process_certificate(payload):
191192
print("ERROR: There is a deployment problem with the attached Role. Unable to reach IoT Core object.")
192193
return None
193194
except BaseException as e:
194-
print("exception occurred: {}".format(e))
195+
print("Base exception occurred: {}".format(e))
195196

196197
return None
197198

0 commit comments

Comments
 (0)