Skip to content

Commit

Permalink
fix AttributeError: 'HTTPError' object has no attribute 'read'
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash committed Aug 11, 2015
1 parent 97e5116 commit 6963d25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gspread/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ def put_feed(self, url, data):
r = self.session.put(url, data, headers=headers)
except HTTPError as ex:
if ex.code == 403:
message = ex.read().decode()
raise UpdateCellError(message)
raise UpdateCellError(ex.message)
else:
raise ex

Expand Down

0 comments on commit 6963d25

Please sign in to comment.