File existence is checked in load_backtest_data
This commit is contained in:
parent
4b7dfc64c6
commit
fc3e3c468c
@ -103,9 +103,7 @@ def load_trades(db_url: str = None, exportfilename: str = None) -> pd.DataFrame:
|
|||||||
|
|
||||||
elif exportfilename:
|
elif exportfilename:
|
||||||
|
|
||||||
file = Path(exportfilename)
|
trades = load_backtest_data(Path(exportfilename))
|
||||||
if file.exists():
|
|
||||||
trades = load_backtest_data(file)
|
|
||||||
|
|
||||||
return trades
|
return trades
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user