Remove clean exit handler on fatal errors

This commit is contained in:
DevilXD committed 2021-12-03 21:22:25 +01:00
1 parent 030463b12c
commit 4cc6711551
1 file changed
+2
+2
View File
@@ -120,6 +120,8 @@ except (asyncio.CancelledError, KeyboardInterrupt):
# notify we're free to exit
close_event.set()
except Exception:
# Remove the handler so it doesn't delay exit
win32api.SetConsoleCtrlHandler(clean_exit, False)
print("Fatal error encountered:\n")
traceback.print_exc()
terminate()