aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbooks6
1 files changed, 5 insertions, 1 deletions
diff --git a/books b/books
index dbdc846..5ddbe71 100755
--- a/books
+++ b/books
@@ -1,6 +1,10 @@
#!/usr/bin/env python
import cli.main
import os
+import sys
bin_dir = os.path.dirname(os.path.realpath(__file__))
-cli.main.main(bin_dir)
+try:
+ cli.main.main(bin_dir)
+except KeyboardInterrupt:
+ sys.exit(1)