delete-reaction-debug
This commit is contained in:
parent
dac79b53ca
commit
0179c69b82
|
@ -232,7 +232,10 @@ def author_follows_topics(author_id: int):
|
||||||
|
|
||||||
|
|
||||||
async def update_author_stat(author_id: int):
|
async def update_author_stat(author_id: int):
|
||||||
author_with_stat = get_with_stat(select(Author).where(Author.id == author_id))
|
try:
|
||||||
if isinstance(author_with_stat, Author):
|
author_with_stat = get_with_stat(select(Author).where(Author.id == author_id))
|
||||||
author_dict = author_with_stat.dict()
|
if isinstance(author_with_stat, Author):
|
||||||
await cache_author(author_dict)
|
author_dict = author_with_stat.dict()
|
||||||
|
await cache_author(author_dict)
|
||||||
|
except Exception as exc:
|
||||||
|
logger.error(exc, exc_info=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user