logs-fix-2
All checks were successful
deploy / deploy (push) Successful in 1m13s

This commit is contained in:
Untone 2024-01-11 10:11:23 +03:00
parent 74d80f1447
commit c8d46cf863

View File

@ -95,12 +95,12 @@ class CacheStorage:
self = CacheStorage
while True:
try:
print("[services.core] - updating views...")
print("[services.core] - updating profiles data...")
await self.update_authors()
failed = 0
except Exception:
except Exception as er:
failed += 1
print("[services.core] - update failed #%d, wait 10 seconds" % failed)
print(f"[services.core] {er} - update failed #{failed}, wait 10 seconds")
if failed > 3:
print("[services.core] - not trying to update anymore")
break