Skip to content

Commit

Permalink
Merge pull request #322 from tseaver/166-document_exceptions_for_conn…
Browse files Browse the repository at this point in the history
…ection_create_bucket

Fix #166: Document exceptions (currently) raised from 'Connection.create_bucket'.
  • Loading branch information
tseaver committed Oct 31, 2014
2 parents d4c46af + c9f86ab commit da8dc57
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit da8dc57

Please sign in to comment.