[PATCH] accounts.py: Print the stacktrace via traceback module
Sebastian Spaeth
Sebastian at SSpaeth.de
Thu Mar 24 09:13:56 GMT 2011
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 <Sebastian at SSpaeth.de>
---
Somehow this one did not converted as all the other instances did.
patch applies to master. Noticed this with the latest gmail error that
was reported.
offlineimap/accounts.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py
index e806151..4903e39 100644
--- a/offlineimap/accounts.py
+++ b/offlineimap/accounts.py
@@ -363,4 +363,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()))
--
1.7.1
More information about the OfflineIMAP-project
mailing list