Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Document exceptions (currently) raised from 'Connection.create_bucket'.
Note that #164 would change this (by adding fine-grained exceptions
for 409, 401, etc.).

Fixes #166 (but should be revisited if #164 lands).
  • Loading branch information
tseaver committed Oct 31, 2014
commit c9f86ab5bf759f0f234bfeb58a405f395ccb0aa6
2 changes: 2 additions & 0 deletions gcloud/storage/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def create_bucket(self, bucket):

:rtype: :class:`gcloud.storage.bucket.Bucket`
:returns: The newly created bucket.
:raises: :class:`gcloud.storage.exceptions.ConnectionError` if
there is a confict (bucket already exists, invalid name, etc.)
"""
bucket = self.new_bucket(bucket)
response = self.api_request(method='POST', path='/b',
Expand Down