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 f64b780
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 @@ -24,6 +24,7 @@
from six.moves.urllib.parse import urlsplit

from google.api_core import datetime_helpers
from google.cloud import storage
from google.cloud._helpers import _datetime_to_rfc3339
from google.cloud._helpers import _NOW
from google.cloud._helpers import _rfc3339_nanos_to_datetime
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 storage.Client()
self._acl = BucketACL(self)
self._default_object_acl = DefaultObjectACL(self)
self._label_removals = set()
Expand Down

0 comments on commit f64b780

Please sign in to comment.