chore: depend on safe_traverse from lewy_globals, add scraper cron job

This commit is contained in:
2025-06-11 00:35:48 +02:00
parent 5d238cb6b8
commit bc82fcd6b8
3 changed files with 7 additions and 18 deletions

View File

@@ -23,9 +23,9 @@ def safeTraverse(obj: dict, path: list, default=None):
try:
for x in path:
result = result[x]
except KeyError:
except (KeyError, TypeError):
result = default
# print(f"error reading: {' -> '.join(path)} - returning: {default}")
print(f"error reading: {' -> '.join(path)} - returning: {default}")
finally:
return result