Skip to content

Commit

Permalink
fix: return lockfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Jan 8, 2024
1 parent c04ae2b commit 52c4d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ def safe_func(*args, **kwargs):
return func


def _create_lockfiles_dir():
def _create_lockfiles_dir() -> Path:
path = Path(config.get_cache_directory()) / "locks"
# TODO(eddiebergman): Not sure why this is allowed to error and ignore???
with contextlib.suppress(OSError):
path.mkdir(exist_ok=True)
return dir
return path

0 comments on commit 52c4d1f

Please sign in to comment.