mirror of
https://github.com/codespell-project/codespell.git
synced 2025-05-17 15:36:17 +08:00
don't show stacktrace from KeyboardInterrupt #3217
This commit is contained in:

committed by
Dimitri Papadopoulos Orfanos

parent
f2deec14a6
commit
b425d557d2
@ -3,4 +3,7 @@ import sys
|
||||
from ._codespell import _script_main
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(_script_main())
|
||||
try:
|
||||
sys.exit(_script_main())
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user