Created attachment 405400 [details] patch to not fail if a bug doesn't have some optional attributes Description of problem: The latest bugzilla install at Red Hat apparently doesn't always return a cc list in the xmlrpc response for a full query of a bug, resulting in a traceback and exit. Version-Release number of selected component (if applicable): How reproducible: often Steps to Reproduce: 1.find a bug with no cc list item in bugzilla 2.bugzilla --user=X --pass=Y query -f --bug_id=<bz number from 1> Actual results: traceback Expected results: successful dump of bug Additional info: I've attached a patch below which fixes the issue
As is my tradition, I'm using this bug to test the problem - hence my removing myself from the CC list. Anyone else reading this: Kindly do not add yourself to the CC list of this bug, so it will stay empty.
Probably the best solution here is to fix up the Bug object so bug.cc is always guaranteed to exist, even if it's an empty list. I'll have a patch that does this.. soonish. P.S.: I'm sure you know this, but just for the record: "except: pass" is a great temporary workaround for the problem, but in general OH MAN NEVER DO THAT.
python-bugzilla-0.6.1-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/python-bugzilla-0.6.1-1.fc13
python-bugzilla-0.6.1-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update python-bugzilla'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/python-bugzilla-0.6.1-1.fc13
python-bugzilla-0.6.1-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.