Skip to content

Commit 2930e45

Browse files
committed
fix: Incorrect URI Prefix Stripping in MLFlowLogger
1 parent 06a8d5b commit 2930e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/loggers/mlflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def save_dir(self) -> Optional[str]:
299299
300300
"""
301301
if self._tracking_uri.startswith(LOCAL_FILE_URI_PREFIX):
302-
return self._tracking_uri.lstrip(LOCAL_FILE_URI_PREFIX)
302+
return self._tracking_uri[len(LOCAL_FILE_URI_PREFIX):]
303303
return None
304304

305305
@property

0 commit comments

Comments
 (0)