Merge "Make dict.keys() PY3 compatible"

This commit is contained in:
Jenkins 2016-06-07 16:57:18 +00:00 committed by Gerrit Code Review
commit c95539753d

View File

@ -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/"):