[PATCH] accounts.py: Print the stacktrace via traceback module
Sebastian Spaeth
Sebastian at SSpaeth.de
Thu Mar 24 09:10:34 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
--=-=-=
Content-Type: multipart/signed; boundary="==-=-=";
micalg=pgp-sha1; protocol="application/pgp-signature"
--==-=-=
2) Can you send me the "-d IMAP -l debug.log" (privately, if it contains
sensitive stuff), so see where exactly the error occurred?
Sebastian
--==-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk2LDCsACgkQVYX1jMgnoGIB9wCff0LdvL56tAE55Ssxqru9uSLF
YQAAn342/ysYmKNWN4T+6nvJsach4Ovl
=Hd/F
-----END PGP SIGNATURE-----
--==-=-=--
--=-=-=--
More information about the OfflineIMAP-project
mailing list