From ee4f05a5b8f820cf62f8fc991f2a346f2b93a6f2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 6 Mar 2025 06:34:10 +0100 Subject: [PATCH] fix: have download-data hard-fail if it times out this will avoid holes in data if individual requests fail. The tradeoff is that the download will stop for this pair/timeframe combination. --- freqtrade/exchange/exchange.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index aaf5f2225..d234c3568 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2351,6 +2351,7 @@ class Exchange: since_ms=since_ms, until_ms=until_ms, candle_type=candle_type, + raise_=True, ) ) logger.debug(f"Downloaded data for {pair} from ccxt with length {len(data)}.") @@ -2391,7 +2392,7 @@ class Exchange: if isinstance(res, BaseException): logger.warning(f"Async code raised an exception: {repr(res)}") if raise_: - raise + raise res continue else: # Deconstruct tuple if it's not an exception