diff --git a/liberapay/cron.py b/liberapay/cron.py index b6ab3b048..4b9526cfb 100644 --- a/liberapay/cron.py +++ b/liberapay/cron.py @@ -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)