Fix #441, introduced in bc551a6

This commit is contained in:
Mads Marquart
2019-07-04 00:33:08 +02:00
parent 19b4d929e2
commit 31d13f8fae

View File

@@ -136,7 +136,7 @@ def handle_payload_error(j):
def handle_graphql_errors(j):
errors = []
if "error" in j:
if j.get("error"):
errors = [j["error"]]
if "errors" in j:
errors = j["errors"]