From f9be1ac82c0fde3ebff60a1a02ff63dafa2111dd Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 24 Apr 2026 06:33:04 +0200 Subject: [PATCH] chore: ignore ws shutdown network errors --- freqtrade/exchange/exchange_ws.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freqtrade/exchange/exchange_ws.py b/freqtrade/exchange/exchange_ws.py index be78e31fa..f99c6aebe 100644 --- a/freqtrade/exchange/exchange_ws.py +++ b/freqtrade/exchange/exchange_ws.py @@ -148,6 +148,10 @@ class ExchangeWS: except ccxt.NotSupported as e: logger.debug("un_watch_ohlcv_for_symbols not supported: %s", e) pass + except ccxt.NetworkError as e: + # Network errors are common on shutdown so we can ignore them. + # It's a network error - which most likely means that the connection is already closed. + logger.debug("Network error during unwatch for %s, %s: %s", pair, timeframe, e) except Exception: logger.exception(f"Exception in _unwatch_ohlcv for {pair}, {timeframe},")