Improve GraphQL error handling

This commit is contained in:
Mads Marquart
2019-07-02 17:50:33 +02:00
parent c9f11b924d
commit bc551a63c2
3 changed files with 15 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ def graphql_response_to_json(content):
continue
_util.handle_payload_error(x)
[(key, value)] = x.items()
_util.handle_graphql_error(value)
_util.handle_graphql_errors(value)
if "response" in value:
rtn[int(key[1:])] = value["response"]
else: