From 69765a3ef03725bad7900c86b5a086a213deda12 Mon Sep 17 00:00:00 2001 From: Eygene Ryabinkin Date: Fri, 30 Aug 2013 21:44:46 +0400 Subject: [PATCH] Properly call error() function from ui.UIBase Second argument is exception traceback, not the message; without this tracebacks like mentioned in http://permalink.gmane.org/gmane.mail.imap.offlineimap.general/5712 were happening when this exception handling block was hit. Signed-off-by: Eygene Ryabinkin --- offlineimap/folder/Base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py index 755a31a..f8b79b4 100644 --- a/offlineimap/folder/Base.py +++ b/offlineimap/folder/Base.py @@ -384,9 +384,9 @@ class BaseFolder(object): raise # bubble severe errors up self.ui.error(e, exc_info()[2]) except Exception as e: - self.ui.error(e, "Copying message %s [acc: %s]:\n %s" %\ - (uid, self.accountname, - exc_info()[2])) + self.ui.error(e, exc_info()[2], + msg="Copying message %s [acc: %s]" %\ + (uid, self.accountname)) raise #raise on unknown errors, so we can fix those def syncmessagesto_copy(self, dstfolder, statusfolder):