Merge "Make dict.keys() PY3 compatible"
This commit is contained in:
commit
c95539753d
@ -426,7 +426,7 @@ def from_response(response, method, url):
|
||||
pass
|
||||
else:
|
||||
if hasattr(body, "keys"):
|
||||
error = body[body.keys()[0]]
|
||||
error = body[list(body.keys())[0]]
|
||||
kwargs["message"] = error.get("message", None)
|
||||
kwargs["details"] = error.get("details", None)
|
||||
elif content_type.startswith("text/"):
|
||||
|
Loading…
Reference in New Issue
Block a user