[PATCH 1/3] Re: Catch correct type of exception

Nicolas Sebrecht nicolas.s-dev at laposte.net
Fri Aug 19 18:06:37 BST 2011


On Wed, Aug 17, 2011 at 10:01:37AM +0200, Vladimir.Marek at oracle.com wrote:
> 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])

Here is the patch I missed before. :-)
Please forget my wrong call for this patch.
Merged!

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list