diff options
-rwxr-xr-x | books | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |