[F] Fix #462 Python version prints Traceback on KeyboardInterrupt
This commit is contained in:
parent
8046e9bab3
commit
e816235637
1 changed files with 5 additions and 1 deletions
|
|
@ -25,4 +25,8 @@ def run_rust():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run_rust()
|
try:
|
||||||
|
run_rust()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
printc('&cThe program is interrupted by ^C, exiting...')
|
||||||
|
exit(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue