From c8d46cf863ad3bf5473a839953af2582f40a28da Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 11 Jan 2024 10:11:23 +0300 Subject: [PATCH] logs-fix-2 --- services/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core.py b/services/core.py index 9f10d7a..c70c124 100644 --- a/services/core.py +++ b/services/core.py @@ -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