logger-fix-getchat-fix
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user