keep client window open if unexpected exceptions occur

This commit is contained in:
Fabian Dill 2020-02-02 06:20:08 +01:00
parent c5e5288b4d
commit a4d8a3831e
1 changed files with 4 additions and 0 deletions

View File

@ -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)