[yum-commits] completion-helper.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Fri Apr 6 07:40:15 UTC 2012
completion-helper.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 6d8a99b413698b117b787fb8d69abeba4fbe7826
Author: ZdenÄk Pavlas <zpavlas at redhat.com>
Date: Thu Apr 5 11:08:08 2012 +0200
completion_helper: catch GroupsError. BZ 806844.
diff --git a/completion-helper.py b/completion-helper.py
index 2e95ced..405ceab 100755
--- a/completion-helper.py
+++ b/completion-helper.py
@@ -23,6 +23,7 @@ import sys
import cli
import yumcommands
+from yum.Errors import GroupsError
class GroupsCompletionCommand(yumcommands.GroupsCommand):
@@ -76,7 +77,10 @@ def main(args):
base.parseCommands()
for repo in base.repos.listEnabled():
repo.skip_if_unavailable = True
- base.doCommands()
+ try:
+ base.doCommands()
+ except GroupsError, e:
+ base.logger.error(e)
if __name__ == "__main__":
try:
More information about the Yum-commits
mailing list