mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
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.
|
||||
try:
|
||||
Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink(missing_ok=True)
|
||||
Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user