From 65faec834fed1f2409c9874203fd36ab571015aa Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 24 Mar 2011 10:13:56 +0100 Subject: [PATCH] accounts.py: Print the stacktrace via traceback module All other instances were converted to format crash output including a stacktrace, but this one seems to have been left out. Make Exceptions print their stacktrace here too. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/accounts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index 8c03e69..63e83fa 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -379,4 +379,5 @@ def syncfolder(accountname, remoterepos, remotefolder, localrepos, raise except: ui.warn("ERROR in syncfolder for %s folder %s: %s" % \ - (accountname,remotefolder.getvisiblename(),sys.exc_info()[1])) + (accountname,remotefolder.getvisiblename(), + traceback.format_exc()))