Skip to content

Commit

Permalink
ident: catch KeyboardInterrupts gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Nickurak committed Aug 25, 2024
1 parent c89723a commit 87d8657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ukechords/ident.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def main():
error(1, exc)
except InvalidCommandException as exc:
error(5, exc)
except KeyboardInterrupt as exc:
error(128, "(aborted)")
return 0


Expand Down

0 comments on commit 87d8657

Please sign in to comment.