Remove clean exit handler on fatal errors
This commit is contained in:
1 parent
030463b12c
commit
4cc6711551
1 file changed
+2
@@ -120,6 +120,8 @@ except (asyncio.CancelledError, KeyboardInterrupt):
|
|||||||
# notify we're free to exit
|
# notify we're free to exit
|
||||||
close_event.set()
|
close_event.set()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
# Remove the handler so it doesn't delay exit
|
||||||
|
win32api.SetConsoleCtrlHandler(clean_exit, False)
|
||||||
print("Fatal error encountered:\n")
|
print("Fatal error encountered:\n")
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
terminate()
|
terminate()
|
||||||
|
|||||||
Reference in new issue
Block a user