This commit is contained in:
parent
74d80f1447
commit
c8d46cf863
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user