Skip to content

Commit

Permalink
Create cache parent dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yonromai committed Oct 12, 2023
1 parent 8b2121d commit 9f11f78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nxontology_ml/gpt_tagger/_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def __init__(self, filename: str, **kwargs: ParamSpecKwargs):

def __open_db(self) -> None:
if not self._lsm:
Path(self._filename).parent.mkdir(parents=True, exist_ok=True)
self._lsm = LSM(filename=self._filename, **self._lsm_kwargs)

def __setitem__(self, __k: str, __v: bytes) -> None:
Expand Down

0 comments on commit 9f11f78

Please sign in to comment.