mirror of
https://github.com/aclist/dztui.git
synced 2026-11-21 17:09:30 +01:00
chore: log additional exceptions
This commit is contained in:
1 parent
f300786546
commit
97c90b435b
2 files changed
+3
-2
No files matched your search
@@ -37,6 +37,7 @@ def get_local_mod_path(steam_path: Path) -> Path:
|
|||||||
def get_local_mods(workshop_path: Path) -> list[Path]:
|
def get_local_mods(workshop_path: Path) -> list[Path]:
|
||||||
# NOTE: user may not have staged mods before
|
# NOTE: user may not have staged mods before
|
||||||
if workshop_path.is_dir() is False:
|
if workshop_path.is_dir() is False:
|
||||||
|
logger.debug("Mod directory not yet present, returning empty list")
|
||||||
return []
|
return []
|
||||||
mods = [file for file in workshop_path.iterdir() if file.is_dir()]
|
mods = [file for file in workshop_path.iterdir() if file.is_dir()]
|
||||||
return mods
|
return mods
|
||||||
|
|||||||
+2
-2
@@ -497,11 +497,11 @@ def is_dayz_downloading(steam_path: Path, appid: int) -> bool:
|
|||||||
|
|
||||||
def get_app_path(folders_path: Path, appid: int) -> Path:
|
def get_app_path(folders_path: Path, appid: int) -> Path:
|
||||||
app_path = None
|
app_path = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(folders_path / LIBRARYFOLDERS_PATH) as f:
|
with open(folders_path / LIBRARYFOLDERS_PATH) as f:
|
||||||
folders = vdf.load(f)
|
folders = vdf.load(f)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
logger.debug(e)
|
||||||
raise VDFLoadError("Failed to parse libraryfolders")
|
raise VDFLoadError("Failed to parse libraryfolders")
|
||||||
|
|
||||||
for obj in folders["libraryfolders"]:
|
for obj in folders["libraryfolders"]:
|
||||||
|
|||||||
Reference in new issue
Block a user