Skip to content

Commit

Permalink
Call raise_for_status on hg.mozilla.org json-automationrelevance resp…
Browse files Browse the repository at this point in the history
…onse

Makes more sense to get an http exception rather than a json decode error.
  • Loading branch information
jcristau committed Jan 31, 2024
1 parent f277b67 commit e2eeadd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/taskgraph/files_changed.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def _get_changed_files_json_automationrelevance(head_repository_url, head_rev):

def get_automationrelevance():
response = requests.get(url, timeout=30)
response.raise_for_status()
return response.json()

contents = retry(get_automationrelevance, attempts=10, sleeptime=10)
Expand Down

0 comments on commit e2eeadd

Please sign in to comment.