diff --git a/exchange/_bybit_ws.py b/exchange/_bybit_ws.py index fb81467a..bcac1811 100644 --- a/exchange/_bybit_ws.py +++ b/exchange/_bybit_ws.py @@ -1,7 +1,6 @@ import asyncio import json import logging -from asyncio.exceptions import CancelledError import websockets from websockets.exceptions import ConnectionClosedError @@ -69,12 +68,7 @@ async def _connect(self): @retry( max_retries=13, initial_retry_delay=1, - handled_exceptions=( - ConnectionError, - RuntimeError, - ConnectionClosedError, - CancelledError, - ), + handled_exceptions=(ConnectionError, ConnectionClosedError), ) async def run(self): await self.close() @@ -91,9 +85,7 @@ async def close(self): initial_retry_delay=1, handled_exceptions=( ConnectionError, - RuntimeError, ConnectionClosedError, - CancelledError, ), ) async def receive(self, symbol, timeframe):