Skip to content

Commit 10761c4

Browse files
Update components/clp-py-utils/clp_py_utils/s3_utils.py
Co-authored-by: haiqi96 <14502009+haiqi96@users.noreply.github.com>
1 parent d435bf0 commit 10761c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/clp-py-utils/clp_py_utils/s3_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ def parse_s3_url(s3_url: str) -> Tuple[str, str, str]:
221221
raise ValueError(f"Unsupported URL format: {s3_url}")
222222

223223
region_code = match.group("region_code")
224+
if region_code is None:
225+
region_code = 'us-east-1'
224226
bucket_name = match.group("bucket_name")
225227
endpoint = match.group("endpoint")
226228
key_prefix = match.group("key_prefix")

0 commit comments

Comments
 (0)