Skip to content

Commit 3e711ad

Browse files
committed
update aws validation
1 parent c60eb8d commit 3e711ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sdgym/benchmark.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,8 +1186,7 @@ def _validate_aws_inputs(output_destination, aws_access_key_id, aws_secret_acces
11861186
if not output_destination.startswith('s3://'):
11871187
raise ValueError("'output_destination' must be an S3 URL starting with 's3://'. ")
11881188

1189-
parsed_url = urlparse(output_destination)
1190-
bucket_name = parsed_url.netloc
1189+
bucket_name, _ = parse_s3_path(output_destination)
11911190
if not bucket_name:
11921191
raise ValueError(f'Invalid S3 URL: {output_destination}')
11931192

0 commit comments

Comments
 (0)