[yum-commits] Branch 'yum-3_2_X' - utils.py

skvidal at osuosl.org skvidal at osuosl.org
Mon Feb 1 20:12:28 UTC 2010


 utils.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 8a53a25e575a94871b28c26cd5626a4e577d8215
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Mon Feb 1 14:34:15 2010 -0500

    catch pluginexit sanely in utils, too:
    fixes rh bug https://bugzilla.redhat.com/show_bug.cgi?id=560341

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)
         


More information about the Yum-commits mailing list