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
|
Bug Fixes
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
* Fix possible crash during --info run
|
||||||
|
@ -24,6 +24,7 @@ import traceback
|
|||||||
import threading
|
import threading
|
||||||
from Queue import Queue
|
from Queue import Queue
|
||||||
from collections import deque
|
from collections import deque
|
||||||
|
from offlineimap.error import OfflineImapError
|
||||||
import offlineimap
|
import offlineimap
|
||||||
|
|
||||||
debugtypes = {'':'Other offlineimap related sync messages',
|
debugtypes = {'':'Other offlineimap related sync messages',
|
||||||
@ -360,7 +361,7 @@ class UIBase(object):
|
|||||||
repository.getssl()))
|
repository.getssl()))
|
||||||
try:
|
try:
|
||||||
conn = repository.imapserver.acquireconnection()
|
conn = repository.imapserver.acquireconnection()
|
||||||
except OfflineImapError, e:
|
except OfflineImapError as e:
|
||||||
self._msg("Failed to connect. Reason %s" % e)
|
self._msg("Failed to connect. Reason %s" % e)
|
||||||
else:
|
else:
|
||||||
if 'ID' in conn.capabilities:
|
if 'ID' in conn.capabilities:
|
||||||
|
Loading…
Reference in New Issue
Block a user