More bz checks.
This commit is contained in:
parent
f844e2c344
commit
5d27ef586b
1 changed files with 14 additions and 2 deletions
|
@ -745,9 +745,21 @@ if __name__ == '__main__':
|
||||||
options = parse_commandline()
|
options = parse_commandline()
|
||||||
|
|
||||||
print "Connecting to bugzilla..."
|
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..."
|
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)
|
print "Done; got %d." % len(bugs)
|
||||||
if not len(bugs):
|
if not len(bugs):
|
||||||
print "No requests to process!"
|
print "No requests to process!"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue