BizHawkClient: Add error message if patching fails ()

This commit is contained in:
Bryce Wilson 2024-04-13 19:26:25 -06:00 committed by GitHub
parent ca5c0d9eb8
commit 50fb70d832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions
worlds/_bizhawk

View File

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