BizHawkClient: Fix error logging in python 3.8 (#2930)
This commit is contained in:
parent
c7e735da15
commit
6badc75237
|
@ -7,7 +7,6 @@ checking or launching the client, otherwise it will probably cause circular impo
|
||||||
import asyncio
|
import asyncio
|
||||||
import enum
|
import enum
|
||||||
import subprocess
|
import subprocess
|
||||||
import traceback
|
|
||||||
from typing import Any, Dict, Optional
|
from typing import Any, Dict, Optional
|
||||||
|
|
||||||
from CommonClient import CommonContext, ClientCommandProcessor, get_base_parser, server_loop, logger, gui_enabled
|
from CommonClient import CommonContext, ClientCommandProcessor, get_base_parser, server_loop, logger, gui_enabled
|
||||||
|
@ -260,7 +259,7 @@ def launch() -> None:
|
||||||
try:
|
try:
|
||||||
await watcher_task
|
await watcher_task
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("".join(traceback.format_exception(e)))
|
logger.exception(e)
|
||||||
|
|
||||||
await ctx.exit_event.wait()
|
await ctx.exit_event.wait()
|
||||||
await ctx.shutdown()
|
await ctx.shutdown()
|
||||||
|
|
Loading…
Reference in New Issue