load_shouts_unrated-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m9s

This commit is contained in:
2024-06-06 11:13:54 +03:00
parent 626e899ca3
commit 543b2e6b4d
4 changed files with 7 additions and 9 deletions

View File

@@ -21,12 +21,11 @@ async def request_data(gql, headers=None):
logger.error(f"HTTP Errors: {errors}")
else:
return data
except Exception as e:
except Exception as _e:
# Handling and logging exceptions during authentication check
import traceback
logger.error(f"request_data error: {e}")
logger.error(traceback.format_exc())
logger.error(f"request_data error: {traceback.format_exc()}")
return None

View File

@@ -128,7 +128,7 @@ async def precache_data():
for author in authors:
profile = author.dict() if not isinstance(author, dict) else author
author_id = profile.get("id")
user_id = profile.get("user","").strip()
user_id = profile.get("user", "").strip()
if author_id and user_id:
authors_by_id[author_id] = profile
await cache_author(profile)