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 f88f8cf984
commit 679977e5d3
2 changed files with 4 additions and 1 deletions

View File

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

View File

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