From 707a7498830cda2d76adc968b83c2ae1d9ba6343 Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Fri, 13 Sep 2024 01:26:22 +0300 Subject: [PATCH] upd --- exchange/_bybit_ws.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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):