commit: 29d62483bdc2550a21ac9f6bfb04ea8e2a9dd9cb parent 53f28771e4d086cd1e8f8c9f4069cb9ad1c01b5e Author: LinuxMercedes <LinuxMercedes@gmail.com> Date: Tue, 11 Dec 2018 14:52:17 -0600 Merge pull request #405 from HastingsGreer/patch-1 Capture details of exceptionDiffstat:
M | e.py | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/e.py b/e.py @@ -3,5 +3,6 @@ import sys try: while 'e': sys.stdout.write('e') -except KeyboardInterrupt: +except KeyboardInterrupt as e: sys.exit('e') +