From d2042a3dde44769524897517953d86a404b6033e Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Tue, 7 Jul 2026 18:38:14 +0900 Subject: [PATCH] fix: clear typehinting errors --- dzgui/api/steam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dzgui/api/steam.py b/dzgui/api/steam.py index f7214d6..4527398 100644 --- a/dzgui/api/steam.py +++ b/dzgui/api/steam.py @@ -287,7 +287,7 @@ def get_registry() -> dict[str, Any] | None: with open(f"{home}/.steam/registry.vdf") as f: registry = vdf.load(f) return registry - except Exception: + except Exception as e: logger.critical(e) return None @@ -339,7 +339,7 @@ def get_running_app() -> int | None: args = proc.cmdline() appid = (row for row in args if FLAG in row) try: - return next(appid).split("=")[1] + return str(next(appid).split("=")[1]) except StopIteration: return None return None