Skip to content

Commit

Permalink
fix cron error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Apr 16, 2024
1 parent b048c69 commit 1bb6d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liberapay/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def f():
ON CONFLICT (name) DO UPDATE
SET last_success_time = excluded.last_success_time
""", (func_name,))
except psycopg2.OperationalError:
except psycopg2.OperationalError as e:
self.cron.website.tell_sentry(e)
# retry in a minute
sleep(60)
Expand Down

0 comments on commit 1bb6d31

Please sign in to comment.