From 65c07bde5ce4814cad8e0ee0f89077100d132ce4 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 17 Jul 2026 08:57:14 -0400 Subject: [PATCH] accounts: report errors syncing as errors As "just" a warning, monitoring can miss problems such as out-of-date SSL certificate chains or fingerprints. Signed-off-by: Ben Boeckel --- offlineimap/accounts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index d8ff70a7..5e0d558f 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -378,9 +378,9 @@ def __sync(self): remoterepos.getfolders() except OfflineImapError as e: msg = f"Error while getting folders for repository " - msg += f"'{remoterepos.name}' of account '{self}': {e} - " + msg += f"'{remoterepos.name}' of account '{self}' - " msg += "skipping account." - self.ui.warn(msg) + self.ui.error(e, exc_info()[2], msg=msg) return # Continue with next account. localrepos.getfolders()