chore: log additional exceptions

This commit is contained in:
aclist committed 2026-11-21 17:59:34 +09:00
1 parent f300786546
commit 97c90b435b
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ def get_local_mod_path(steam_path: Path) -> Path:
def get_local_mods(workshop_path: Path) -> list[Path]:
# NOTE: user may not have staged mods before
if workshop_path.is_dir() is False:
logger.debug("Mod directory not yet present, returning empty list")
return []
mods = [file for file in workshop_path.iterdir() if file.is_dir()]
return mods
+2 -2
View File
@@ -497,11 +497,11 @@ def is_dayz_downloading(steam_path: Path, appid: int) -> bool:
def get_app_path(folders_path: Path, appid: int) -> Path:
app_path = None
try:
with open(folders_path / LIBRARYFOLDERS_PATH) as f:
folders = vdf.load(f)
except Exception:
except Exception as e:
logger.debug(e)
raise VDFLoadError("Failed to parse libraryfolders")
for obj in folders["libraryfolders"]: