Blob Blame History Raw
commit 6581e0ac0a21414e702b353462941df31ccbe2f1
Author: Richard Hughes <richard@hughsie.com>
Date:   Thu Nov 27 09:41:42 2008 +0000

    yum: catch yum.Errors.RepoError when we get the yum comps groups. Fixes fd#18722

diff --git a/backends/yum/yumComps.py b/backends/yum/yumComps.py
index 3d40391..fedc171 100755
--- a/backends/yum/yumComps.py
+++ b/backends/yum/yumComps.py
@@ -255,8 +255,10 @@ class yumComps:
 
     def refresh(self, force=False):
         ''' get the data from yum (slow, REALLY SLOW) '''
-
-        cats = self.yumbase.comps.categories
+        try:
+            cats = self.yumbase.comps.categories
+        except yum.Errors.RepoError, e:
+            return False
         if self.yumbase.comps.compscount == 0:
             return False