--- hooks/post-bodhi-update/watch-bodhi-requests.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/hooks/post-bodhi-update/watch-bodhi-requests.py b/hooks/post-bodhi-update/watch-bodhi-requests.py index 68843b3..d233a09 100755 --- a/hooks/post-bodhi-update/watch-bodhi-requests.py +++ b/hooks/post-bodhi-update/watch-bodhi-requests.py @@ -200,8 +200,8 @@ when new requests are filed in bodhi') try: new_updates = bodhi_new_requests_since(r, int(lastcheck), testing_cachefile, updatecache=(not opts.dryrun)) - except fedora.client.ServerError, e: - print "ERROR: %s" % str(e) + except fedora.client.FedoraServiceError as e: + print "ERROR: %s" % e # Sort the new updates based on their target/request updates = {'testing': [], 'stable': [], 'critpath': []} for u in new_updates: @@ -212,8 +212,12 @@ when new requests are filed in bodhi') len(updates['critpath']))
print "Looking for requests moving from testing to stable for %s" % r - new_updates = bodhi_new_stable_requests(r, stable_cachefile, + try: + new_updates = [] + new_updates = bodhi_new_stable_requests(r, stable_cachefile, updatecache=(not opts.dryrun)) + except fedora.client.FedoraServiceError as e: + print "ERROR: %s" % e print "%i stable update requests found" % len(new_updates) updates['stable'] += new_updates