Skip to content

Commit

Permalink
Add variables
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 4529a91 commit 54fd6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions augur/tasks/github/util/github_graphql_data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def paginate_resource(self, query, variables, result_keys):

data = self.__extract_data_section(result_keys, result_json)
if data is None:
raise Exception(f"Error: data section of response is None. Query: {query}. Response: {result_json}")
raise Exception(f"Error: data section of response is None. Variables: {variables}. Query: {query}. Response: {result_json}")

if self.__get_total_count(data) == 0:
return
Expand All @@ -59,7 +59,7 @@ def paginate_resource(self, query, variables, result_keys):

data = self.__extract_data_section(result_keys, result_json)
if data is None:
raise Exception(f"Error: data section of response is None. Query: {query}. Response: {result_json}")
raise Exception(f"Error: data section of response is None. Variables: {variables}. Query: {query}. Response: {result_json}")

yield from self.__extract_raw_data_into_list(data)

Expand Down

0 comments on commit 54fd6fa

Please sign in to comment.