Better trace information when an exception is caught.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu> Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:

committed by
Nicolas Sebrecht

parent
fa60f3f9b7
commit
e506442996
@ -20,6 +20,7 @@ from offlineimap import CustomConfig
|
||||
from offlineimap.ui import getglobalui
|
||||
import os.path
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
def LoadRepository(name, account, reqtype):
|
||||
from offlineimap.repository.Gmail import GmailRepository
|
||||
@ -166,8 +167,8 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
|
||||
except (KeyboardInterrupt):
|
||||
raise
|
||||
except:
|
||||
getglobalui().warn("ERROR Attempting to make folder " \
|
||||
+ key + ":" +str(sys.exc_info()[1]))
|
||||
UIBase.getglobalui().warn("ERROR Attempting to make folder " \
|
||||
+ key + ":" +traceback.format_exc())
|
||||
|
||||
#
|
||||
# Find deleted folders.
|
||||
|
Reference in New Issue
Block a user