Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 61414e0

Browse files
committed
fix: Update storage.Blob.from_string() to from_uri()
Fixes #382
1 parent b1f3772 commit 61414e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/documentai_toolbox/utilities/gcs_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_blob(
142142
if not re.match(constants.FILE_CHECK_REGEX, gcs_uri):
143143
raise ValueError("gcs_uri must link to a single file.")
144144

145-
return storage.Blob.from_string(gcs_uri, _get_storage_client(module=module))
145+
return storage.Blob.from_uri(gcs_uri, _get_storage_client(module=module))
146146

147147

148148
def split_gcs_uri(gcs_uri: str) -> Tuple[str, str]:

0 commit comments

Comments
 (0)