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

View File

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