This commit is contained in:
parent
7f1794891c
commit
89956d6240
|
@ -80,6 +80,7 @@ def apply_filters(q, filters, author_id=None):
|
|||
|
||||
@query.field("get_shout")
|
||||
async def get_shout(_, info, slug: str):
|
||||
try:
|
||||
with local_session() as session:
|
||||
q = query_shouts()
|
||||
aliased_reaction = aliased(Reaction)
|
||||
|
@ -136,6 +137,10 @@ async def get_shout(_, info, slug: str):
|
|||
if main_topic:
|
||||
shout.main_topic = main_topic[0]
|
||||
return shout
|
||||
except Exception as _exc:
|
||||
import traceback
|
||||
|
||||
logger.error(traceback.format_exc())
|
||||
|
||||
|
||||
@query.field("load_shouts_by")
|
||||
|
|
Loading…
Reference in New Issue
Block a user