Need to import OfflineImapError for --info function

An import was missing.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2012-01-07 20:28:58 +01:00
parent 54a6f17ef7
commit e267dcd24d
2 changed files with 4 additions and 1 deletions

View File

@ -18,3 +18,5 @@ Changes
Bug Fixes
---------
* Fix possible crash during --info run

View File

@ -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: