mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: rewrite tests
This commit is contained in:
1 parent
156c1f8ec4
commit
8fc7aa5165
3 files changed
+33
-11
No files matched your search
@@ -438,6 +438,10 @@ def get_app_path(folders_path: Path, appid: int) -> Path:
|
||||
raise AppNotInstalledError(
|
||||
f"Failed to find a libraryfolder for the appid {appid}"
|
||||
)
|
||||
if Path(app_path).exists() is False:
|
||||
raise AppMovedError(
|
||||
f"The location '{app_path}' pointed to by '{appid}' no longer exists and may have been changed on the disk."
|
||||
)
|
||||
|
||||
return Path(app_path)
|
||||
|
||||
|
||||
Reference in new issue
Block a user