mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-04-25 16:08:35 -05:00
[F] Fix #462 Python version prints Traceback on KeyboardInterrupt
This commit is contained in:
parent
8046e9bab3
commit
e816235637
|
|
@ -25,4 +25,8 @@ def run_rust():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_rust()
|
||||
try:
|
||||
run_rust()
|
||||
except KeyboardInterrupt:
|
||||
printc('&cThe program is interrupted by ^C, exiting...')
|
||||
exit(0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user