This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user