From 14b64c7bb58b1f16f6a16a89693491c2d555e08b Mon Sep 17 00:00:00 2001 From: qwcan Date: Tue, 9 Dec 2025 10:38:31 -0600 Subject: [PATCH] Add None check, update error report URL --- umalauncher/gui.py | 2 +- umalauncher/horsium.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/umalauncher/gui.py b/umalauncher/gui.py index 1ce4365..830f960 100644 --- a/umalauncher/gui.py +++ b/umalauncher/gui.py @@ -1401,7 +1401,7 @@ def do_error_request(url, json): if util.is_script: version_str += ".script" version_str += " (" + util.get_game_variant_string() + ")" - thread = threading.Thread(target=do_error_request, args = ( "https://umalauncher.uc.r.appspot.com/api/v1/umalauncher/error", {"traceback": traceback_str, "user_id": user_id, "version": version_str} ) ) + thread = threading.Thread(target=do_error_request, args = ( "https://umalauncher.uc.r.appspot.com/api/v2/umalauncher/error", {"traceback": traceback_str, "user_id": user_id, "version": version_str} ) ) thread.start() diff --git a/umalauncher/horsium.py b/umalauncher/horsium.py index d33d047..9ae145e 100644 --- a/umalauncher/horsium.py +++ b/umalauncher/horsium.py @@ -285,7 +285,7 @@ def wrapper(self, *args, **kwargs): return wrapper def get_browser_pid(self): - if 'moz:processID' in self.driver.capabilities: + if self.driver is not None and 'moz:processID' in self.driver.capabilities: return self.driver.capabilities['moz:processID'] else: browsers = ['chrome.exe', 'msedge.exe', 'chromium.exe']