Skip to content

Commit

Permalink
Merge pull request #281 from fatelei/master
Browse files Browse the repository at this point in the history
BugFix
  • Loading branch information
burnash committed Aug 11, 2015
2 parents c47b4b2 + d078bae commit 97e5116
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gspread/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ def post_feed(self, url, data):
try:
r = self.session.post(url, data, headers=headers)
except HTTPError as ex:
message = ex.read().decode()
raise RequestError(message)
raise RequestError(ex.message)

return ElementTree.fromstring(r.read())

Expand Down Expand Up @@ -334,4 +333,3 @@ def authorize(credentials):
client = Client(auth=credentials)
client.login()
return client

0 comments on commit 97e5116

Please sign in to comment.