Skip to content

Commit

Permalink
fix: Fixed AttributeError when working with Blobs and Buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed Aug 19, 2021
1 parent bd72f5d commit 893e43a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/cloud/storage/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from google.cloud.storage.acl import BucketACL
from google.cloud.storage.acl import DefaultObjectACL
from google.cloud.storage.blob import Blob
from google.cloud.storage.client import Client
from google.cloud.storage.constants import _DEFAULT_TIMEOUT
from google.cloud.storage.constants import ARCHIVE_STORAGE_CLASS
from google.cloud.storage.constants import COLDLINE_STORAGE_CLASS
Expand Down Expand Up @@ -610,7 +611,7 @@ def __init__(self, client, name=None, user_project=None):
"""
name = _validate_name(name)
super(Bucket, self).__init__(name=name)
self._client = client
self._client = client or Client()
self._acl = BucketACL(self)
self._default_object_acl = DefaultObjectACL(self)
self._label_removals = set()
Expand Down

0 comments on commit 893e43a

Please sign in to comment.