load_shouts_unrated-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m9s
All checks were successful
Deploy on push / deploy (push) Successful in 1m9s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user