handle ctrl-c

This commit is contained in:
carnal0wnage
2017-06-30 17:18:55 -04:00
parent 054c3b130d
commit b2a34aaa74
13 changed files with 77 additions and 6 deletions

View File

@@ -32,7 +32,9 @@ def describe_configuration_recorders(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, r
print('[-] {} : does not have config access. Did you check first?' .format(AWS_ACCESS_KEY_ID))
pass
else:
print "Unexpected error: %s" % e
print "Unexpected error: {}" .format(e)
except KeyboardInterrupt:
print("CTRL-C received, exiting...")
return response
@@ -55,6 +57,8 @@ def describe_configuration_rules(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, regio
print('[-] {} : does not have config access. Did you check first?' .format(AWS_ACCESS_KEY_ID))
pass
else:
print "Unexpected error: %s" % e
print "Unexpected error: {}" .format(e)
except KeyboardInterrupt:
print("CTRL-C received, exiting...")
return response