[PATCH 1/3] Catch correct type of exception
Vladimir.Marek at oracle.com
Vladimir.Marek at oracle.com
Wed Aug 17 09:01:37 BST 2011
From: Vladimir Marek <vlmarek at volny.cz>
Signed-off-by: Vladimir Marek <vlmarek at volny.cz>
---
offlineimap/folder/Base.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py
index 3da0de1..7f510e0 100644
--- a/offlineimap/folder/Base.py
+++ b/offlineimap/folder/Base.py
@@ -428,7 +428,7 @@ class BaseFolder(object):
action(dstfolder, statusfolder)
except (KeyboardInterrupt):
raise
- except OfflineImap, e:
+ except OfflineImapError, e:
if e.severity > OfflineImapError.ERROR.FOLDER:
raise
self.ui.error(e, exc_info()[2])
--
Vlad
More information about the OfflineIMAP-project
mailing list