From 6badc752375630bdd1054fec6d3d89a5f90ba3ae Mon Sep 17 00:00:00 2001 From: Bryce Wilson Date: Mon, 11 Mar 2024 00:16:48 -0600 Subject: [PATCH] BizHawkClient: Fix error logging in python 3.8 (#2930) --- worlds/_bizhawk/context.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/worlds/_bizhawk/context.py b/worlds/_bizhawk/context.py index 4ee6e24f..85e2c990 100644 --- a/worlds/_bizhawk/context.py +++ b/worlds/_bizhawk/context.py @@ -7,7 +7,6 @@ checking or launching the client, otherwise it will probably cause circular impo import asyncio import enum import subprocess -import traceback from typing import Any, Dict, Optional from CommonClient import CommonContext, ClientCommandProcessor, get_base_parser, server_loop, logger, gui_enabled @@ -260,7 +259,7 @@ def launch() -> None: try: await watcher_task except Exception as e: - logger.error("".join(traceback.format_exception(e))) + logger.exception(e) await ctx.exit_event.wait() await ctx.shutdown()