[releng] find_unblocked_orphans: Handle pkgdb2 errors

Till Maas till at fedoraproject.org
Tue Oct 7 20:11:47 UTC 2014


commit 9bea7961aa127ca3c9d2d2250c7ab92d5c1129ab
Author: Till Maas <opensource at till.name>
Date:   Tue Oct 7 20:46:22 2014 +0200

    find_unblocked_orphans: Handle pkgdb2 errors
    
    Packages Fedora Branched without a branch for Fedora Branched cause an
    error when getting maintainer information. However, this should never
    happen:
    https://github.com/fedora-infra/pkgdb2/issues/95

 scripts/find_unblocked_orphans.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/scripts/find_unblocked_orphans.py b/scripts/find_unblocked_orphans.py
index ceea03b..2b004ee 100755
--- a/scripts/find_unblocked_orphans.py
+++ b/scripts/find_unblocked_orphans.py
@@ -199,7 +199,9 @@ def get_people(package, branch=RAWHIDE_RELEASE["branch"]):
         sys.stderr.write(
             "Error getting maintainer of package {} on branch {}\n".format(
                 package, branch))
+        # FIXME: Write proper traceback
         sys.stderr.write(str(e))
+        return []
     pkginfo = pkginfo["packages"][0]
     people_ = [pkginfo["point_of_contact"]]
     people_.extend(associated(pkginfo, exclude=people_))


More information about the rel-eng mailing list