[yum-commits] Branch 'yum-3_2_X' - yum/yumRepo.py

James Antill james at osuosl.org
Mon Apr 27 14:31:20 UTC 2009


 yum/yumRepo.py |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 1830277a2823f02e039411fc9bd890675756c067
Author: James Antill <james at and.org>
Date:   Mon Apr 27 10:22:47 2009 -0400

    Revert "Catch Errors.RepoMDError, for not valid mdtype, and report"
    
    Nothing is expecting this.

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 03210aa..671de7d 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1434,12 +1434,7 @@ class YumRepository(Repository, config.RepoConf):
 
     def _retrieveMD(self, mdtype, retrieve_can_fail=False):
         """ Internal function, use .retrieveMD() from outside yum. """
-        try:
-            thisdata = self.repoXML.getData(mdtype)
-        except Errors.RepoMDError, e: # mdtype not in repo
-            if retrieve_can_fail:
-                return None
-            raise Errors.RepoError, e.message
+        thisdata = self.repoXML.getData(mdtype)
 
         (r_base, remote) = thisdata.location
         fname = os.path.basename(remote)


More information about the Yum-commits mailing list