Skip to content

Commit

Permalink
Don't totally ignore KeyboardInterrupt
Browse files Browse the repository at this point in the history
Commit 2a05400 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.
  • Loading branch information
aspiers committed Apr 3, 2021
1 parent 49fc59e commit f19669e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_deps/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f19669e

Please sign in to comment.