Possible fix for BZ errors.
This commit is contained in:
parent
3307b7c6c2
commit
f844e2c344
1 changed files with 32 additions and 6 deletions
|
@ -569,9 +569,22 @@ def process_new_request(bug, comment, allcomments, firstfound, pkgdb, fas, branc
|
||||||
return (False, True)
|
return (False, True)
|
||||||
|
|
||||||
print 'Updating bugzilla...'
|
print 'Updating bugzilla...'
|
||||||
# XXX Need to handle errors here
|
# XXX Need to handle errors here - might be done, limburgher 2012-09-05
|
||||||
bug.updateflags({'fedora-cvs':'+', 'nomail':1})
|
try:
|
||||||
bug.addcomment(bug_comment)
|
bug.updateflags({'fedora-cvs':'+', 'nomail':1})
|
||||||
|
except Exception, e:
|
||||||
|
print "Bugzilla call failed:"
|
||||||
|
print e
|
||||||
|
raw_input('\nPress enter to continue to the next ticket.')
|
||||||
|
return (False, True)
|
||||||
|
try:
|
||||||
|
bug.addcomment(bug_comment)
|
||||||
|
except Exception, e:
|
||||||
|
print "Bugzilla call failed:"
|
||||||
|
print e
|
||||||
|
raw_input('\nPress enter to continue to the next ticket.')
|
||||||
|
return (False, True)
|
||||||
|
|
||||||
return (request['pkg'], True)
|
return (request['pkg'], True)
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
@ -690,9 +703,22 @@ def process_change_request(bug, comment, allcomments, firstfound, pkgdb, branche
|
||||||
return (False, True)
|
return (False, True)
|
||||||
|
|
||||||
print 'Updating bugzilla...'
|
print 'Updating bugzilla...'
|
||||||
# XXX Need to handle errors here
|
# XXX Need to handle errors here - might be done, limburgher 2012-09-05
|
||||||
bug.updateflags({'fedora-cvs':'+', 'nomail':1})
|
try:
|
||||||
bug.addcomment(bug_comment)
|
bug.updateflags({'fedora-cvs':'+', 'nomail':1})
|
||||||
|
except Exception, e:
|
||||||
|
print "Bugzilla call failed:"
|
||||||
|
print e
|
||||||
|
raw_input('\nPress enter to continue to the next ticket.')
|
||||||
|
return (False, True)
|
||||||
|
try:
|
||||||
|
bug.addcomment(bug_comment)
|
||||||
|
except Exception, e:
|
||||||
|
print "Bugzilla call failed:"
|
||||||
|
print e
|
||||||
|
raw_input('\nPress enter to continue to the next ticket.')
|
||||||
|
return (False, True)
|
||||||
|
|
||||||
return (request['pkg'], True)
|
return (request['pkg'], True)
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue