Prevent exception, ensure deletion occurs
This commit is contained in:
parent
356b2d3d91
commit
6fdad8c6bd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user