verbose errors
This commit is contained in:
parent
88cb8eb9ce
commit
e09d595d8b
|
@ -381,7 +381,7 @@ async def get_shout_by_slug(_, info, slug):
|
|||
filter(Shout.slug == slug).first()
|
||||
|
||||
if not shout:
|
||||
print("shout not exist")
|
||||
print(f"shout with slug {slug} not exist")
|
||||
return {} #TODO return error field
|
||||
|
||||
shout.ratings = await ShoutRatingStorage.get_ratings(slug)
|
||||
|
|
Loading…
Reference in New Issue
Block a user