[Yum-devel] [PATCH] catch pluginexit sanely in utils, too: fixes rh bug https://bugzilla.redhat.com/show_bug.cgi?id=560341

Tim Lauridsen tim.lauridsen at googlemail.com
Mon Feb 1 20:02:28 UTC 2010


On Mon, Feb 1, 2010 at 8:35 PM, Seth Vidal <skvidal at fedoraproject.org>wrote:

> ---
>  utils.py |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/utils.py b/utils.py
> index dbbbe13..19a69db 100644
> --- a/utils.py
> +++ b/utils.py
> @@ -195,8 +195,10 @@ class YumUtilBase(YumBaseCli):
>         except ValueError, e:
>             self.logger.critical(_('Options Error: %s'), e)
>             sys.exit(1)
> -
> -
> +        except plugins.PluginYumExit, e:
> +            self.logger.critical(_('PluginExit Error: %s'), e)
> +            sys.exit(1)
> +
>         # update usage in case plugins have added commands
>         self._parser.set_usage(self._usage)
>
> --
> 1.6.5.2
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel


ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100201/54f69541/attachment.htm>


More information about the Yum-devel mailing list