aboutsummaryrefslogtreecommitdiffstats
path: root/git_deps
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2019-05-20 13:08:30 +0100
committerAdam Spiers <git@adamspiers.org>2021-04-03 19:15:57 +0100
commitf19669e964912bd289f1255edc18f88e3f1f0683 (patch)
treeee2e6e63154b9c757781f8dea1a73058efca8932 /git_deps
parent49fc59e4c57af93d38067b5aa81daac9ce563fb1 (diff)
downloadgit-deps-f19669e964912bd289f1255edc18f88e3f1f0683.tar.gz
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.
Diffstat (limited to 'git_deps')
-rwxr-xr-xgit_deps/cli.py2
1 files changed, 1 insertions, 1 deletions
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))