From 103fcfd045ea47c093004bad25612a907f0481eb Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 9 Apr 2024 22:02:26 +0300 Subject: [PATCH] trace-fix --- resolvers/author.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resolvers/author.py b/resolvers/author.py index e61d3a62..24d041ea 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -77,11 +77,9 @@ async def get_author(_, _info, slug='', author_id=0): await cache_author(author_dict) except ValueError: pass - except Exception: + except Exception as exc: import traceback - - exc = traceback.format_exc() - logger.error(exc) + logger.error(f'{exc}:\n{traceback.format_exc()}') return author_dict