Skip to content

Commit

Permalink
Throw exception when data is none
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
  • Loading branch information
ABrain7710 committed Jul 23, 2024
1 parent 009687e commit 0b40bbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions augur/tasks/github/util/github_graphql_data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def __extract_data_section(self, keys, json_response):

core = core[value]

if core is None:
raise Exception(f"Error: data section of response is None. Response: {json_response}")

return core

def __extract_raw_data_into_list(self, data):
Expand Down

0 comments on commit 0b40bbb

Please sign in to comment.