From f19669e964912bd289f1255edc18f88e3f1f0683 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 20 May 2019 13:08:30 +0100 Subject: Don't totally ignore KeyboardInterrupt Commit 2a05400e2 ignored KeyboardInterrupt. I'm *guessing* I did that to avoid an ugly stacktrace, but even if so, the user's desire to interrupt execution should not be ignored in this way. Fixes #83 and #89. --- git_deps/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_deps/cli.py b/git_deps/cli.py index 9f3db04..34a45e1 100755 --- a/git_deps/cli.py +++ b/git_deps/cli.py @@ -122,7 +122,7 @@ def cli(options, args): try: detector.find_dependencies(rev) except KeyboardInterrupt: - pass + break if options.json: print(json.dumps(listener.json(), sort_keys=True, indent=4)) -- cgit