Skip to content

Commit

Permalink
Make error MLFlow deleted experiment explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
millskyle authored Jan 21, 2025
1 parent a944e77 commit ecd87fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightning/pytorch/loggers/mlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def experiment(self) -> "MlflowClient":

if self._experiment_id is None:
expt = self._mlflow_client.get_experiment_by_name(self._experiment_name)
if expt is not None:
if expt is not None and expt.lifecycle_stage != 'deleted':
self._experiment_id = expt.experiment_id
else:
log.warning(f"Experiment with name {self._experiment_name} not found. Creating it.")
Expand Down

0 comments on commit ecd87fe

Please sign in to comment.