Show correct valueerror message

This commit is contained in:
Matthias 2019-08-02 09:37:59 +02:00
parent 4c005e7086
commit 76d22bc743
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def load_backtest_data(filename) -> pd.DataFrame:
filename = Path(filename)
if not filename.is_file():
raise ValueError("File {filename} does not exist.")
raise ValueError(f"File {filename} does not exist.")
with filename.open() as file:
data = json_load(file)