From a6480d4959d2747680e75b2351dac8f1aca85fe1 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 22 Aug 2011 17:22:41 +0200 Subject: [PATCH] Fix string formatting We were omitting an '%' where we needed it. Also include the traceback information where it belongs in the new ui.error infrastructure. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/Base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py index 09837ff..5bd8061 100644 --- a/offlineimap/folder/Base.py +++ b/offlineimap/folder/Base.py @@ -436,7 +436,6 @@ class BaseFolder(object): raise self.ui.error(e, exc_info()[2]) except Exception, e: - self.ui.error(e, msg = "ERROR attempting to sync folder %s " - "[acc: %s]:\n %s" (self, self.getaccountname(), - traceback.format_exc())) + self.ui.error(e, exc_info()[2], "Syncing folder %s [acc: %s]" %\ + (self, self.getaccountname())) raise # raise unknown Exceptions so we can fix them