From 2b0b1e23eb8e5f113693fd4c9d763d4daab3e304 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 2 Aug 2024 07:25:53 +0200 Subject: [PATCH] chore: enhance error message on ohlcv error --- freqtrade/exchange/exchange.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index b80b3147e..c1608e3c1 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2612,12 +2612,13 @@ class Exchange: except (ccxt.OperationFailed, ccxt.ExchangeError) as e: raise TemporaryError( f"Could not fetch historical candle (OHLCV) data " - f"for pair {pair} due to {e.__class__.__name__}. " + f"for {pair}, {timeframe}, {candle_type} due to {e.__class__.__name__}. " f"Message: {e}" ) from e except ccxt.BaseError as e: raise OperationalException( - f"Could not fetch historical candle (OHLCV) data for pair {pair}. Message: {e}" + f"Could not fetch historical candle (OHLCV) data for " + f"{pair}, {timeframe}, {candle_type}. Message: {e}" ) from e async def _fetch_funding_rate_history(