Fixed bug in GoogleCloudStorageBlob.exists()
This commit is contained in:
@@ -182,7 +182,10 @@ class GoogleCloudStorageBlob(Blob):
|
|||||||
|
|
||||||
def exists(self) -> bool:
|
def exists(self) -> bool:
|
||||||
# Reload to get the actual file properties from Google.
|
# Reload to get the actual file properties from Google.
|
||||||
|
try:
|
||||||
self.gblob.reload()
|
self.gblob.reload()
|
||||||
|
except NotFound:
|
||||||
|
return False
|
||||||
return self.gblob.exists()
|
return self.gblob.exists()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user