@@ -136,7 +136,7 @@ def handle_payload_error(j):
|
|||||||
|
|
||||||
def handle_graphql_errors(j):
|
def handle_graphql_errors(j):
|
||||||
errors = []
|
errors = []
|
||||||
if "error" in j:
|
if j.get("error"):
|
||||||
errors = [j["error"]]
|
errors = [j["error"]]
|
||||||
if "errors" in j:
|
if "errors" in j:
|
||||||
errors = j["errors"]
|
errors = j["errors"]
|
||||||
|
Reference in New Issue
Block a user