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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: daplapath
3
- Version: 2.0.6
3
+ Version: 2.0.7
4
4
  Summary: A pathlib.Path class for dapla
5
5
  License: MIT
6
6
  Author: ort
@@ -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 (PermissionError, FileNotFoundError, TypeError, IsADirectoryError):
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 (PermissionError, FileNotFoundError, TypeError, IsADirectoryError):
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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "daplapath"
3
- version = "2.0.6"
3
+ version = "2.0.7"
4
4
  description = "A pathlib.Path class for dapla"
5
5
  authors = ["ort <ort@ssb.no>"]
6
6
  license = "MIT"
File without changes
File without changes