Skip to content

Commit

Permalink
Merge pull request #227 from tseaver/silence_py26_deprecation_for_exc…
Browse files Browse the repository at this point in the history
…eption_message

Silence Python 2.6 deprecation of exception.message.
  • Loading branch information
dhermes committed Oct 7, 2014
2 parents 941a2c7 + 37df55f commit f2cdcf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcloud/storage/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class ConnectionError(StorageError):
def __init__(self, response, content):
message = str(response) + content
super(ConnectionError, self).__init__(message)
# suppress deprecation warning under 2.6.x
self.message = message


class NotFoundError(ConnectionError):
Expand Down

0 comments on commit f2cdcf1

Please sign in to comment.