Skip to content

Commit ecd87fe

Browse files
authored
Make error MLFlow deleted experiment explicit
1 parent a944e77 commit ecd87fe

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
@@ -178,7 +178,7 @@ def experiment(self) -> "MlflowClient":
178178

179179
if self._experiment_id is None:
180180
expt = self._mlflow_client.get_experiment_by_name(self._experiment_name)
181-
if expt is not None:
181+
if expt is not None and expt.lifecycle_stage != 'deleted':
182182
self._experiment_id = expt.experiment_id
183183
else:
184184
log.warning(f"Experiment with name {self._experiment_name} not found. Creating it.")

0 commit comments

Comments
 (0)