mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
keep client window open if unexpected exceptions occur
This commit is contained in:
@@ -4,6 +4,9 @@ import json
|
||||
import logging
|
||||
import shlex
|
||||
import urllib.parse
|
||||
import atexit
|
||||
|
||||
exit_func = atexit.register(input, "Press enter to close.")
|
||||
|
||||
import ModuleUpdate
|
||||
ModuleUpdate.update()
|
||||
@@ -940,3 +943,4 @@ if __name__ == '__main__':
|
||||
loop.run_until_complete(asyncio.gather(*asyncio.Task.all_tasks()))
|
||||
loop.close()
|
||||
colorama.deinit()
|
||||
atexit.unregister(exit_func)
|
||||
|
Reference in New Issue
Block a user