daplapath 2.0.6__tar.gz → 2.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {daplapath-2.0.6 → daplapath-2.0.7}/PKG-INFO +1 -1
- {daplapath-2.0.6 → daplapath-2.0.7}/daplapath/path.py +7 -3
- {daplapath-2.0.6 → daplapath-2.0.7}/pyproject.toml +1 -1
- {daplapath-2.0.6 → daplapath-2.0.7}/LICENSE.md +0 -0
- {daplapath-2.0.6 → daplapath-2.0.7}/README.md +0 -0
- {daplapath-2.0.6 → daplapath-2.0.7}/daplapath/__init__.py +0 -0
|
@@ -605,7 +605,9 @@ class Path(str, _PathBase):
|
|
|
605
605
|
try:
|
|
606
606
|
with self.open("rb") as file:
|
|
607
607
|
return get_schema(file)
|
|
608
|
-
except (
|
|
608
|
+
except (
|
|
609
|
+
Exception
|
|
610
|
+
): # (PermissionError, FileNotFoundError, TypeError, IsADirectoryError):
|
|
609
611
|
return get_schema(self)
|
|
610
612
|
|
|
611
613
|
@property
|
|
@@ -623,7 +625,9 @@ class Path(str, _PathBase):
|
|
|
623
625
|
try:
|
|
624
626
|
with self.open("rb") as file:
|
|
625
627
|
return get_shape(file)
|
|
626
|
-
except (
|
|
628
|
+
except (
|
|
629
|
+
Exception
|
|
630
|
+
): # (PermissionError, FileNotFoundError, TypeError, IsADirectoryError):
|
|
627
631
|
return get_shape(self)
|
|
628
632
|
|
|
629
633
|
@property
|
|
@@ -1510,7 +1514,7 @@ def get_schema(file) -> pyarrow.Schema:
|
|
|
1510
1514
|
FileNotFoundError,
|
|
1511
1515
|
IsADirectoryError,
|
|
1512
1516
|
OSError,
|
|
1513
|
-
):
|
|
1517
|
+
) as e:
|
|
1514
1518
|
# try:
|
|
1515
1519
|
# return ds.dataset(file).schema
|
|
1516
1520
|
# except (TypeError, FileNotFoundError) as e:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|