From cdf95382c2f303e1a11d70242229eb29731ecf55 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Wed, 20 Sep 2023 16:31:46 -0300 Subject: [PATCH] Less meta --- api/tzprofiles/hooks/resolver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tzprofiles/hooks/resolver.py b/api/tzprofiles/hooks/resolver.py index af680bda..8dd35ee9 100644 --- a/api/tzprofiles/hooks/resolver.py +++ b/api/tzprofiles/hooks/resolver.py @@ -31,11 +31,11 @@ async def _resolve(ctx: HookContext, profile: TZProfile): try: await profile.save() - except asyncpg.ProgramLimitExceededError as e: + except asyncpg.ProgramLimitExceededError: # FIXME: Find a better solution await Meta.create( key=f'profile_{profile.pk}', - value=str(e), + value='too_big', ) profile.reset() profile.failed = True