summaryrefslogtreecommitdiffstats
path: root/bugzilla
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-01-04 17:38:43 -0500
committerWill Woods <wwoods@redhat.com>2008-01-04 17:38:43 -0500
commit10f23b519983f4f5686dc08edda83e72a76ae2a2 (patch)
tree539b9fbc5483153ffe434a46871016539031a051 /bugzilla
parentee89c5d09a5165f545befe7f9078a73fd144563f (diff)
downloadpython-bugzilla-10f23b519983f4f5686dc08edda83e72a76ae2a2.zip
python-bugzilla-10f23b519983f4f5686dc08edda83e72a76ae2a2.tar.gz
python-bugzilla-10f23b519983f4f5686dc08edda83e72a76ae2a2.tar.xz
Handle missing bugs better when modifying
Diffstat (limited to 'bugzilla')
-rwxr-xr-xbugzilla6
1 files changed, 5 insertions, 1 deletions
diff --git a/bugzilla b/bugzilla
index 0d05c78..41df3c0 100755
--- a/bugzilla
+++ b/bugzilla
@@ -256,7 +256,11 @@ if __name__ == '__main__':
parser.error('No bug IDs given (maybe you forgot an argument somewhere?)')
# Iterate over a list of Bug objects
# FIXME: this should totally use some multicall magic
- for bug in bz.getbugssimple(bugid_list):
+ buglist = bz.getbugssimple(bugid_list)
+ for id,bug in zip(bugid_list,buglist):
+ if not bug:
+ log.error(" failed to load bug %s" % id)
+ continue
log.debug("modifying bug %s" % bug.bug_id)
if opt.comment:
log.debug(" add comment: %s" % opt.comment)