From 679977e5d3f0290fb710da85b5444013e1f6fac0 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Sat, 7 Jan 2012 20:28:58 +0100 Subject: [PATCH] Need to import OfflineImapError for --info function An import was missing. Signed-off-by: Sebastian Spaeth --- Changelog.draft.rst | 2 ++ offlineimap/ui/UIBase.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 76a0ea3..4a8eee8 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -18,3 +18,5 @@ Changes Bug Fixes --------- + +* Fix possible crash during --info run diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index 296159d..ac3c160 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -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: