Skip to content

Commit

Permalink
Add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakai-li committed Dec 22, 2024
1 parent 0c61ac8 commit 327dbac
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 @@ -380,7 +380,7 @@ def _initialize_fs(self, scheme: str, netloc: Optional[str] = None) -> FileSyste
# Override the default s3.region if netloc(bucket) resolves to a different region
try:
client_kwargs["region"] = resolve_s3_region(netloc)
except OSError:
except (OSError, TypeError):
pass

return S3FileSystem(**client_kwargs)
Expand Down

0 comments on commit 327dbac

Please sign in to comment.