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:
|
||||
|
||||
file = Path(exportfilename)
|
||||
if file.exists():
|
||||
trades = load_backtest_data(file)
|
||||
trades = load_backtest_data(Path(exportfilename))
|
||||
|
||||
return trades
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user