From b8e229f084b520de9b702e8697d97cceb7836843 Mon Sep 17 00:00:00 2001 From: J-Doiron <139803019+J-Doiron@users.noreply.github.com> Date: Mon, 17 Feb 2025 16:12:45 -0800 Subject: [PATCH] More linter fixes maybe? --- aots-e/aotse_utils.py | 2 +- horizonzdr/hzdr_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aots-e/aotse_utils.py b/aots-e/aotse_utils.py index aa64d4c..730ce73 100644 --- a/aots-e/aotse_utils.py +++ b/aots-e/aotse_utils.py @@ -89,7 +89,7 @@ def wait_for_benchmark_process(test_name, process_name, timeout=60): # If we exceed the timeout, break out of the loop and log an error if time.time() - start_time > timeout: logging.error("Timeout reached while waiting for process '%s'.", process_name) - raise TimeoutError("Process '%s' did not start within the expected time. Is the game configured for DX12?", process_name) + raise TimeoutError("Process '%s' did not start within the expected time. Is the game configured for DX12?" % process_name) # Wait for 1 second before checking again time.sleep(1) diff --git a/horizonzdr/hzdr_utils.py b/horizonzdr/hzdr_utils.py index f8f5834..7eab804 100644 --- a/horizonzdr/hzdr_utils.py +++ b/horizonzdr/hzdr_utils.py @@ -31,7 +31,7 @@ def export_registry_key(hive, subkey, input_file): index += 1 except OSError: pass - except WindowsError as e: + except OSError as e: print(f"Failed to open the registry key: {e}") def convert_dword_to_decimal(dword_hex):