Prevent exception, ensure deletion occurs
This commit is contained in:
@@ -192,7 +192,7 @@ def test_start_no_data(mocker, hyperopt_conf) -> None:
|
|||||||
|
|
||||||
# Cleanup since that failed hyperopt start leaves a lockfile.
|
# Cleanup since that failed hyperopt start leaves a lockfile.
|
||||||
try:
|
try:
|
||||||
Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink(missing_ok=True)
|
Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user