[yum-commits] Branch 'yum-3_2_X' - utils.py
Tim Lauridsen
timlau at osuosl.org
Mon Feb 1 21:10:49 UTC 2010
utils.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 629ad61d512978a46bc46c3533c08d6db82ab6f6
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date: Mon Feb 1 21:55:26 2010 +0100
catch YumBaseErrors in utils (rhbz #523145)
diff --git a/utils.py b/utils.py
index 19a69db..2b0f655 100644
--- a/utils.py
+++ b/utils.py
@@ -198,6 +198,9 @@ class YumUtilBase(YumBaseCli):
except plugins.PluginYumExit, e:
self.logger.critical(_('PluginExit Error: %s'), e)
sys.exit(1)
+ except Errors.YumBaseError, e:
+ self.logger.critical(_('Yum 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