diff options
author | Anthony Wang | 2022-01-22 22:39:15 -0600 |
---|---|---|
committer | Anthony Wang | 2022-01-22 22:39:15 -0600 |
commit | d99b262835f0c443b9d40a810ca4741b954bfeaa (patch) | |
tree | a93d4a8c89e061610443d3437d34512419b192ee | |
parent | 53b7908df5fc664264a0265e76408cef91dc77aa (diff) |
Correctly exit program after KeyboardInterrupt
-rwxr-xr-x | mkbinder.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mkbinder.py b/mkbinder.py index c588fc1..6617fd8 100755 --- a/mkbinder.py +++ b/mkbinder.py @@ -41,5 +41,6 @@ for category in os.listdir('Links'): open(name, 'wb').write(pdf) except KeyboardInterrupt: print('😠Exiting') + exit() except: print('😱 Error when printing') |