File existence is checked in load_backtest_data

This commit is contained in:
Matthias 2019-06-16 19:26:43 +02:00
parent 4b7dfc64c6
commit fc3e3c468c
1 changed files with 1 additions and 3 deletions

View File

@ -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