[yum-commits] repoquery.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Oct 7 10:00:15 UTC 2013


 repoquery.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d32be5ea153b72f4572c5a22896d2fb6268f4f4f
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Mon Oct 7 11:59:56 2013 +0200

    repoquery: handle MiscError. BZ 808500

diff --git a/repoquery.py b/repoquery.py
index 64976ec..3483ad2 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -859,7 +859,7 @@ class YumBaseQuery(yum.YumBase):
                     pkgs = self.pkgSack.returnNewestByNameArch(**kwargs)
                 except yum.Errors.PackageSackError:
                     pkgs = []
-                except yum.Errors.RepoError, e:
+                except (yum.Errors.RepoError, yum.Errors.MiscError), e:
                     raise queryError(e)
         else:
             what = self.options.pkgnarrow


More information about the Yum-commits mailing list