From eab1700b0da1b444f422a8fa576b6e3528b97d71 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 26 Feb 2024 04:22:06 +0300 Subject: [PATCH] get-author-fix-3 --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index 48228e7b..e80dd253 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -57,7 +57,7 @@ async def get_author(_, _info, slug='', author_id=None): traceback.print_exc() logger.error(exc) - return author + return author or {"slug": "anonymous", "id": 1, "name": "Аноним", "bio": "Неизвестно кто"} async def get_author_by_user_id(user_id: str):