dbde60d
commit 6581e0ac0a21414e702b353462941df31ccbe2f1
dbde60d
Author: Richard Hughes <richard@hughsie.com>
dbde60d
Date:   Thu Nov 27 09:41:42 2008 +0000
dbde60d
dbde60d
    yum: catch yum.Errors.RepoError when we get the yum comps groups. Fixes fd#18722
dbde60d
dbde60d
diff --git a/backends/yum/yumComps.py b/backends/yum/yumComps.py
dbde60d
index 3d40391..fedc171 100755
dbde60d
--- a/backends/yum/yumComps.py
dbde60d
+++ b/backends/yum/yumComps.py
dbde60d
@@ -255,8 +255,10 @@ class yumComps:
dbde60d
 
dbde60d
     def refresh(self, force=False):
dbde60d
         ''' get the data from yum (slow, REALLY SLOW) '''
dbde60d
-
dbde60d
-        cats = self.yumbase.comps.categories
dbde60d
+        try:
dbde60d
+            cats = self.yumbase.comps.categories
dbde60d
+        except yum.Errors.RepoError, e:
dbde60d
+            return False
dbde60d
         if self.yumbase.comps.compscount == 0:
dbde60d
             return False
dbde60d