Catch correct type of exception
Signed-off-by: Vladimir Marek <vlmarek@volny.cz> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
df62bb61a5
commit
8de326b29f
@ -431,7 +431,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])
|
||||
|
Loading…
Reference in New Issue
Block a user