Skip to content

Commit

Permalink
Less meta
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Sep 20, 2023
1 parent 2d3cbe2 commit cdf9538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/tzprofiles/hooks/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdf9538

Please sign in to comment.