[releng] find_unblocked_orphans: Add debug info for exception
Till Maas
till at fedoraproject.org
Tue Oct 7 17:54:24 UTC 2014
commit 821dcda1bed274043cebef25b71986d0189fcbe4
Author: Till Maas <opensource at till.name>
Date: Tue Oct 7 19:55:09 2014 +0200
find_unblocked_orphans: Add debug info for exception
scripts/find_unblocked_orphans.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/scripts/find_unblocked_orphans.py b/scripts/find_unblocked_orphans.py
index 1ef656b..43b8ad2 100755
--- a/scripts/find_unblocked_orphans.py
+++ b/scripts/find_unblocked_orphans.py
@@ -193,7 +193,13 @@ def get_people(package, branch=RAWHIDE_RELEASE["branch"]):
other_people.add(fas_name)
return sorted(other_people)
- pkginfo = pkgdb.get_package(package, branches=branch)
+ try:
+ pkginfo = pkgdb.get_package(package, branches=branch)
+ except Exception as e:
+ sys.stderr.write(
+ "Error getting maintainer of package {} on branch {}\n".format(
+ package, branch))
+ sys.stderr.write(str(e))
pkginfo = pkginfo["packages"][0]
people_ = [pkginfo["point_of_contact"]]
people_.extend(associated(pkginfo, exclude=people_))
More information about the rel-eng
mailing list