diff options
| author | Will Woods <wwoods@redhat.com> | 2008-01-04 17:38:43 -0500 |
|---|---|---|
| committer | Will Woods <wwoods@redhat.com> | 2008-01-04 17:38:43 -0500 |
| commit | 10f23b519983f4f5686dc08edda83e72a76ae2a2 (patch) | |
| tree | 539b9fbc5483153ffe434a46871016539031a051 /bugzilla | |
| parent | ee89c5d09a5165f545befe7f9078a73fd144563f (diff) | |
| download | python-bugzilla-10f23b519983f4f5686dc08edda83e72a76ae2a2.tar.gz python-bugzilla-10f23b519983f4f5686dc08edda83e72a76ae2a2.tar.xz python-bugzilla-10f23b519983f4f5686dc08edda83e72a76ae2a2.zip | |
Handle missing bugs better when modifying
Diffstat (limited to 'bugzilla')
| -rwxr-xr-x | bugzilla | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |
