Skip to content

Commit

Permalink
Fix #441, introduced in bc551a6
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jul 3, 2019
1 parent 19b4d92 commit 31d13f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fbchat/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 31d13f8

Please sign in to comment.