Need to import OfflineImapError for --info function
An import was missing. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
f88f8cf984
commit
679977e5d3
@ -18,3 +18,5 @@ Changes
|
||||
|
||||
Bug Fixes
|
||||
---------
|
||||
|
||||
* Fix possible crash during --info run
|
||||
|
@ -24,6 +24,7 @@ import traceback
|
||||
import threading
|
||||
from Queue import Queue
|
||||
from collections import deque
|
||||
from offlineimap.error import OfflineImapError
|
||||
import offlineimap
|
||||
|
||||
debugtypes = {'':'Other offlineimap related sync messages',
|
||||
@ -360,7 +361,7 @@ class UIBase(object):
|
||||
repository.getssl()))
|
||||
try:
|
||||
conn = repository.imapserver.acquireconnection()
|
||||
except OfflineImapError, e:
|
||||
except OfflineImapError as e:
|
||||
self._msg("Failed to connect. Reason %s" % e)
|
||||
else:
|
||||
if 'ID' in conn.capabilities:
|
||||
|
Loading…
Reference in New Issue
Block a user