From e4b1e1118b028d14b1511436083e4d8948f60247 Mon Sep 17 00:00:00 2001 From: Ali Salama Date: Fri, 25 Apr 2025 10:33:39 +0100 Subject: [PATCH] Changed filter to pop --- freqtrade/data/history/history_utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index 060858d7a..629d1cf7c 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -403,11 +403,7 @@ def refresh_backtest_ohlcv_data( ) # get the already downloaded pair candles if they exist - pair_candles = ( - fast_candles[(pair, timeframe, candle_type)] - if (pair, timeframe, candle_type) in fast_candles - else None - ) + pair_candles = fast_candles.pop((pair, timeframe, candle_type), None) progress.update(timeframe_task, description=f"Timeframe {timeframe}") logger.debug(f"Downloading pair {pair}, {candle_type}, interval {timeframe}.")