mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 06:02:51 +01:00
fix: handle invalid mods on server
This commit is contained in:
1 parent
c947bc2c9b
commit
93edbac5b0
3 files changed
+24
-2
No files matched your search
+4
-1
@@ -139,6 +139,8 @@ def get_remote_signatures(mods: list[str]) -> list[tuple[str, str, int, int]]:
|
||||
j = r.json()
|
||||
rows = j["response"]["publishedfiledetails"]
|
||||
for row in rows:
|
||||
if row["result"] == 9:
|
||||
continue
|
||||
title = str(row["title"])
|
||||
_id = str(row["publishedfileid"])
|
||||
time = int(row["time_updated"])
|
||||
@@ -205,9 +207,11 @@ def launch_offline(
|
||||
proc = subprocess.run([*client_args, *params])
|
||||
return proc.returncode
|
||||
|
||||
|
||||
def find_loginusers(path: Path) -> Path:
|
||||
return path / "config" / "loginusers.vdf"
|
||||
|
||||
|
||||
def find_user_id(path: Path) -> str | None:
|
||||
resolved_path = find_loginusers(path)
|
||||
try:
|
||||
@@ -226,7 +230,6 @@ def find_user_id(path: Path) -> str | None:
|
||||
return None
|
||||
|
||||
|
||||
|
||||
def find_user_id_32(path: Path) -> int:
|
||||
uid = find_user_id(path)
|
||||
if uid is None:
|
||||
|
||||
Reference in new issue
Block a user