Skip to content

Commit

Permalink
Re-raise KeyError in findOpenBugs with unexpected JSON
Browse files Browse the repository at this point in the history
See #363
  • Loading branch information
maltejur committed May 7, 2024
1 parent d7689dd commit 76be725
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apis/bugzilla_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ def findOpenBugs(url, bugIDs):
except Exception as e:
raise Exception("Could not decode a bugzilla response as JSON: " + r.text) from e

return [b['id'] for b in j['bugs']]
try:
return [b['id'] for b in j['bugs']]
except KeyError as e:
raise Exception(j) from e


def markFFVersionAffected(url, apikey, bugID, ff_version, affected):
Expand Down

0 comments on commit 76be725

Please sign in to comment.