Skip to content

Commit 26524fd

Browse files
authored
cast path to string (#619)
in some cases this might be a PosixPath, causing issues downstream
1 parent d261760 commit 26524fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dvclive/live.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def log_artifact(
446446

447447
def cache(self, path):
448448
try:
449-
stage = self._dvc_repo.add(path)
449+
stage = self._dvc_repo.add(str(path))
450450
except Exception as e: # noqa: BLE001
451451
logger.warning(f"Failed to dvc add {path}: {e}")
452452
return

0 commit comments

Comments
 (0)