Prevent exception, ensure deletion occurs

This commit is contained in:
Matthias 2021-12-25 14:03:44 +01:00
parent 356b2d3d91
commit 6fdad8c6bd
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ def test_start_no_data(mocker, hyperopt_conf) -> None:
# Cleanup since that failed hyperopt start leaves a lockfile.
try:
Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink(missing_ok=True)
Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink()
except Exception:
pass