less-scope-exception
This commit is contained in:
parent
1099f8a185
commit
c8b55d0d5b
|
@ -57,7 +57,6 @@ async def get_shout(_, info, slug=None, shout_id=None):
|
|||
|
||||
q = q.filter(Shout.deleted_at.is_(None)).group_by(Shout.id)
|
||||
|
||||
try:
|
||||
results = session.execute(q).first()
|
||||
if results:
|
||||
[
|
||||
|
@ -124,10 +123,6 @@ async def get_shout(_, info, slug=None, shout_id=None):
|
|||
if main_topic:
|
||||
shout.main_topic = main_topic[0]
|
||||
return shout
|
||||
except Exception:
|
||||
raise HTTPException(
|
||||
status_code=404, detail=f'shout {slug or shout_id} not found'
|
||||
)
|
||||
|
||||
|
||||
@query.field('load_shouts_by')
|
||||
|
|
Loading…
Reference in New Issue
Block a user