verbose errors

This commit is contained in:
knst-kotov 2022-06-15 10:05:20 +03:00
parent 88cb8eb9ce
commit e09d595d8b

View File

@ -381,7 +381,7 @@ async def get_shout_by_slug(_, info, slug):
filter(Shout.slug == slug).first() filter(Shout.slug == slug).first()
if not shout: if not shout:
print("shout not exist") print(f"shout with slug {slug} not exist")
return {} #TODO return error field return {} #TODO return error field
shout.ratings = await ShoutRatingStorage.get_ratings(slug) shout.ratings = await ShoutRatingStorage.get_ratings(slug)