Skip to content

Commit

Permalink
Update pyiceberg/io/pyarrow.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Liu <[email protected]>
  • Loading branch information
jiakai-li and kevinjqliu authored Jan 6, 2025
1 parent 4b83fc0 commit 7f207bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiceberg/io/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def _initialize_s3_fs(self, netloc: Optional[str]) -> FileSystem:
provided_region = get_first_property_value(self.properties, S3_REGION, AWS_REGION)

try:
bucket_region = resolve_s3_region(netloc)
bucket_region = resolve_s3_region(bucket=netloc)
except (OSError, TypeError):
bucket_region = None
logger.warning(f"Unable to resolve region for bucket {netloc}, using default region {provided_region}")
Expand Down

0 comments on commit 7f207bf

Please sign in to comment.