Skip to content

Commit

Permalink
Handle FileNotFoundError when inferring partitioning in BaseDataset; …
Browse files Browse the repository at this point in the history
…update version to 0.9.1.5 in pyproject.toml
  • Loading branch information
legout committed Dec 4, 2024
1 parent 12dc592 commit bdc2c77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions pydala/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ def __init__(
# NOTE: Set partitioning manually, if not set, try to infer it
if partitioning is None:
# try to infer partitioning
if any(["=" in obj for obj in self.fs.ls(self._path)]):
partitioning = "hive"
try:
if any(["=" in obj for obj in self.fs.ls(self._path)]):
partitioning = "hive"
except FileNotFoundError as e:
_ = e
partitioning = None
else:
if partitioning == "ignore":
partitioning = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name = "pydala2"
readme = "README.md"
repository = "https://github.com/legout/pydala2"
requires-python = ">= 3.10"
version = "0.9.1.4"
version = "0.9.1.5"

[project.optional-dependencies]
legacy = ["polars-lts-cpu>=0.20.4"]
Expand Down

0 comments on commit bdc2c77

Please sign in to comment.