python-bugzilla
python-bugzilla copied to clipboard
Fix KeyError when no bug is retrieved
Currently the _getbug method is trying to get element from list without checking if it's not empty.
This commit will add the check and return None if no bug is found.