Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Sep 12, 2024
1 parent ce6cf0e commit 707a749
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions exchange/_bybit_ws.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import json
import logging
from asyncio.exceptions import CancelledError

import websockets
from websockets.exceptions import ConnectionClosedError
Expand Down Expand Up @@ -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()
Expand All @@ -91,9 +85,7 @@ async def close(self):
initial_retry_delay=1,
handled_exceptions=(
ConnectionError,
RuntimeError,
ConnectionClosedError,
CancelledError,
),
)
async def receive(self, symbol, timeframe):
Expand Down

0 comments on commit 707a749

Please sign in to comment.