From 1bb6d31cb6bd1149247ca36c16f0a786afa56930 Mon Sep 17 00:00:00 2001 From: Changaco Date: Tue, 16 Apr 2024 14:23:23 +0200 Subject: [PATCH] fix cron error handling --- liberapay/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)