Don't load empty dataframes - skip these

closes #9811
This commit is contained in:
Matthias
2024-02-14 07:26:23 +01:00
committed by Joe Schr
parent 9a8ae99fc7
commit 27556f934e

View File

@@ -53,7 +53,8 @@ def import_kraken_trades_from_csv(config: Config, convert_to: str):
# Load and combine all csv files for this pair
for f in tradesdir.rglob(f"{name}.csv"):
df = pd.read_csv(f, names=KRAKEN_CSV_TRADE_COLUMNS)
dfs.append(df)
if not df.empty:
dfs.append(df)
# Load existing trades data
if not dfs: