From 50fb70d832255d7d55502253d8ae692275a887ee Mon Sep 17 00:00:00 2001 From: Bryce Wilson Date: Sat, 13 Apr 2024 19:26:25 -0600 Subject: [PATCH] BizHawkClient: Add error message if patching fails (#2877) --- worlds/_bizhawk/context.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/worlds/_bizhawk/context.py b/worlds/_bizhawk/context.py index 85e2c990..05bee234 100644 --- a/worlds/_bizhawk/context.py +++ b/worlds/_bizhawk/context.py @@ -234,8 +234,11 @@ async def _run_game(rom: str): async def _patch_and_run_game(patch_file: str): - metadata, output_file = Patch.create_rom_file(patch_file) - Utils.async_start(_run_game(output_file)) + try: + metadata, output_file = Patch.create_rom_file(patch_file) + Utils.async_start(_run_game(output_file)) + except Exception as exc: + logger.exception(exc) def launch() -> None: