[PATCH] Prettify message formatting

Sebastian Spaeth Sebastian at SSpaeth.de
Wed Dec 1 12:12:34 GMT 2010


Straightforward reformatting of the Error output to look nicer on the eyes.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 offlineimap/accounts.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py
index 5975332..f3ae9ad 100644
--- a/offlineimap/accounts.py
+++ b/offlineimap/accounts.py
@@ -367,5 +367,5 @@ def syncfolder(accountname, remoterepos, remotefolder, localrepos,
         statusfolder.save()
         localrepos.restore_atime()
     except:
-        ui.warn("ERROR in syncfolder for " + accountname + " folder  " + \
-        remotefolder.getvisiblename() +" : " +str(sys.exc_info()[1]))
+        ui.warn("ERROR in syncfolder for %s folder %s: %s" % \
+                (accountname,remotefolder.getvisiblename(),sys.exc_info()[1]))
-- 
1.7.1





More information about the OfflineIMAP-project mailing list