chore: ignore ws shutdown network errors
This commit is contained in:
@@ -148,6 +148,10 @@ class ExchangeWS:
|
|||||||
except ccxt.NotSupported as e:
|
except ccxt.NotSupported as e:
|
||||||
logger.debug("un_watch_ohlcv_for_symbols not supported: %s", e)
|
logger.debug("un_watch_ohlcv_for_symbols not supported: %s", e)
|
||||||
pass
|
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:
|
except Exception:
|
||||||
logger.exception(f"Exception in _unwatch_ohlcv for {pair}, {timeframe},")
|
logger.exception(f"Exception in _unwatch_ohlcv for {pair}, {timeframe},")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user