Skip to content

Commit 3d4d48c

Browse files
authored
don't show stacktrace from KeyboardInterrupt codespell-project#3217
1 parent f2deec1 commit 3d4d48c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

codespell_lib/__main__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
from ._codespell import _script_main
44

55
if __name__ == "__main__":
6-
sys.exit(_script_main())
6+
try:
7+
sys.exit(_script_main())
8+
except KeyboardInterrupt:
9+
pass

0 commit comments

Comments
 (0)