Skip to content

Commit

Permalink
don't show stacktrace from KeyboardInterrupt #3217
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic authored and DimitriPapadopoulos committed Nov 14, 2023
1 parent f2deec1 commit b425d55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion codespell_lib/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
from ._codespell import _script_main

if __name__ == "__main__":
sys.exit(_script_main())
try:
sys.exit(_script_main())
except KeyboardInterrupt:
pass

0 comments on commit b425d55

Please sign in to comment.