Skip to content

Commit da8dc57

Browse files
committed
Merge pull request #322 from tseaver/166-document_exceptions_for_connection_create_bucket
Fix #166: Document exceptions (currently) raised from 'Connection.create_bucket'.
2 parents d4c46af + c9f86ab commit da8dc57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gcloud/storage/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ def create_bucket(self, bucket):
338338
339339
:rtype: :class:`gcloud.storage.bucket.Bucket`
340340
:returns: The newly created bucket.
341+
:raises: :class:`gcloud.storage.exceptions.ConnectionError` if
342+
there is a confict (bucket already exists, invalid name, etc.)
341343
"""
342344
bucket = self.new_bucket(bucket)
343345
response = self.api_request(method='POST', path='/b',

0 commit comments

Comments
 (0)