Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Better Python 3 support (#33)
Browse files Browse the repository at this point in the history
* Support Python 3 style exceptions
  • Loading branch information
streeter authored and BrandonY committed Sep 26, 2016
1 parent 3968c33 commit 8f196d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/src/cloudstorage/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def run(self, tasklet, **kwds):
'Tasklet has exceeded request deadline after %s seconds total',
time.time() - start_time)
raise
except self.retriable_exceptions, e:
except self.retriable_exceptions as e:
pass

if n == 1:
Expand Down
2 changes: 1 addition & 1 deletion python/src/cloudstorage/storage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def do_request_async(self, url, method='GET', headers=None, payload=None,
resp_tuple = yield super(_StorageApi, self).do_request_async(
url, method=method, headers=headers, payload=payload,
deadline=deadline, callback=callback)
except urlfetch.DownloadError, e:
except urlfetch.DownloadError as e:
raise errors.TimeoutError(
'Request to Google Cloud Storage timed out.', e)

Expand Down

0 comments on commit 8f196d4

Please sign in to comment.