From 327dbac75d10e817c7c0d83d8d22580c5ce9a3a3 Mon Sep 17 00:00:00 2001 From: Jiakai Li Date: Mon, 23 Dec 2024 12:56:31 +1300 Subject: [PATCH] Add error handling --- pyiceberg/io/pyarrow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiceberg/io/pyarrow.py b/pyiceberg/io/pyarrow.py index 605485a87..d2432e80e 100644 --- a/pyiceberg/io/pyarrow.py +++ b/pyiceberg/io/pyarrow.py @@ -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)