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: