Merge branch 'feature/kvb-org-queue-cleanup' into unify/skills-20261112-night
This commit is contained in:
commit
1fa52eb092
11 files changed
+1431
-9
No files matched your search
@@ -152,7 +152,7 @@ def items() -> list[dict]:
|
||||
for line in lines:
|
||||
try:
|
||||
row = json.loads(line)
|
||||
except ValueError:
|
||||
except (ValueError, RecursionError):
|
||||
continue
|
||||
if isinstance(row, dict) and isinstance(row.get("ts"), int | float):
|
||||
rows.append(row)
|
||||
@@ -225,7 +225,7 @@ def for_me(row: dict, name: str, sid: str) -> bool:
|
||||
def read_json(path: Path) -> dict:
|
||||
try:
|
||||
data = json.loads(organize("nofollow").read_text(ROOT, path))
|
||||
except (OSError, ValueError):
|
||||
except (OSError, ValueError, RecursionError):
|
||||
return {}
|
||||
return data if isinstance(data, dict) else {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user