get-shout-debug
All checks were successful
Deploy on push / deploy (push) Successful in 22s

This commit is contained in:
Untone 2024-04-26 11:43:22 +03:00
parent 7f1794891c
commit 89956d6240

View File

@ -80,6 +80,7 @@ def apply_filters(q, filters, author_id=None):
@query.field("get_shout") @query.field("get_shout")
async def get_shout(_, info, slug: str): async def get_shout(_, info, slug: str):
try:
with local_session() as session: with local_session() as session:
q = query_shouts() q = query_shouts()
aliased_reaction = aliased(Reaction) aliased_reaction = aliased(Reaction)
@ -136,6 +137,10 @@ async def get_shout(_, info, slug: str):
if main_topic: if main_topic:
shout.main_topic = main_topic[0] shout.main_topic = main_topic[0]
return shout return shout
except Exception as _exc:
import traceback
logger.error(traceback.format_exc())
@query.field("load_shouts_by") @query.field("load_shouts_by")