aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-01-22 22:39:15 -0600
committerAnthony Wang2022-01-22 22:39:15 -0600
commitd99b262835f0c443b9d40a810ca4741b954bfeaa (patch)
treea93d4a8c89e061610443d3437d34512419b192ee
parent53b7908df5fc664264a0265e76408cef91dc77aa (diff)
Correctly exit program after KeyboardInterrupt
-rwxr-xr-xmkbinder.py1
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')