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

@@ -1735,6 +1735,7 @@ class Client(object):
}
data = {"doc_id": 1491398900900362, "variables": json.dumps({"data": data})}
j = self._payload_post("/webgraphql/mutation", data)
handle_graphql_errors(j)
def createPlan(self, plan, thread_id=None):
"""