From 5d27ef586b000ec05e52b072513c2b54d3effbd2 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Wed, 5 Sep 2012 14:05:47 -0500 Subject: [PATCH] More bz checks. --- .../process-git-requests/process-git-requests | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/process-git-requests/process-git-requests b/scripts/process-git-requests/process-git-requests index 23a5ece..59dc175 100755 --- a/scripts/process-git-requests/process-git-requests +++ b/scripts/process-git-requests/process-git-requests @@ -745,9 +745,21 @@ if __name__ == '__main__': options = parse_commandline() print "Connecting to bugzilla..." - bz = bugzilla.Bugzilla(url=options.url) + try: + bz = bugzilla.Bugzilla(url=options.url) + except Exception, e: + print "Bugzilla call failed:" + print e + exit(1) + print "Querying bugzilla..." - (bugs, comments) = run_query(bz) + try: + (bugs, comments) = run_query(bz) + except Exception, e: + print "Bugzilla call failed:" + print e + exit(1) + print "Done; got %d." % len(bugs) if not len(bugs): print "No requests to process!"