Capture details of exception

This commit is contained in:
QuadmasterXLII 2018-12-10 03:06:15 -05:00 committed by GitHub
parent 351c6c7802
commit d6a6d1abaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
e.py
View File

@ -3,5 +3,5 @@ import sys
try:
while True:
sys.stdout.write('e')
except KeyboardInterrupt:
except KeyboardInterrupt as e:
sys.exit(0)