From 895e08d2287b0b682d45992d208c1f2c031656d6 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 5 Nov 2026 21:26:20 +0900 Subject: [PATCH] fix: error handling --- dzgui/api/steam.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dzgui/api/steam.py b/dzgui/api/steam.py index ab4649c..1bd455a 100644 --- a/dzgui/api/steam.py +++ b/dzgui/api/steam.py @@ -392,13 +392,19 @@ def get_running_app() -> int | None: def get_last_updated(path: Path, appid: int) -> str | None: root_path = get_app_path(path, appid) acf = root_path.joinpath(f"steamapps/appmanifest_{appid}.acf") - return ACF(acf).get_last_updated() + try: + return ACF(acf).get_last_updated() + except Exception as e: + logger.critical(e) def get_last_played(path: Path, appid: int) -> str | None: root_path = get_app_path(path, appid) acf = root_path.joinpath(f"steamapps/appmanifest_{appid}.acf") - return ACF(acf).get_last_played() + try: + return ACF(acf).get_last_played() + except Exception as e: + logger.critical(e) def get_app_allows_downloads(path: Path, appid: int) -> bool: