logger-fix-getchat-fix

This commit is contained in:
2024-04-19 11:50:25 +03:00
parent c96e8afc45
commit 6a450a84c1
2 changed files with 10 additions and 8 deletions

View File

@@ -64,8 +64,8 @@ class CacheStorage:
self = CacheStorage
async with self.lock:
result = get_all_authors()
logger.info(f"cache loaded {len(result)}")
if result:
if isinstance(result, list):
logger.info(f"cache loaded {len(result)}")
CacheStorage.authors = result
for a in result:
user_id = a.get("user")