mirror of
https://github.com/codespell-project/codespell.git
synced 2025-08-06 09:40:56 +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
|
from ._codespell import _script_main
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
try:
|
||||||
sys.exit(_script_main())
|
sys.exit(_script_main())
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
Reference in New Issue
Block a user