Fix Typos in comments

Change-Id: Ib66ec89f6e556093ab00d3f7fb8ad0f3d9912461
This commit is contained in:
rahulram
2015-08-26 11:45:07 -07:00
parent f25eb5e114
commit 22ce8451a8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ def from_response(response, body=None):
"""Return an instance of an HTTPException based on httplib response."""
cls = _code_map.get(response.status_code, HTTPException)
if body and 'json' in response.headers['content-type']:
# Iterate over the nested objects and retreive the "message" attribute.
# Iterate over the nested objects and retrieve the "message" attribute.
messages = [obj.get('message') for obj in response.json().values()]
# Join all of the messages together nicely and filter out any objects
# that don't have a "message" attr.