chore: ignore ws shutdown network errors

pull/13088/head
Matthias 3 weeks ago
parent 8e9d193791
commit f9be1ac82c

@ -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},")

Loading…
Cancel
Save