chore: update websocket implementation to new asyncio api

This commit is contained in:
Matthias
2024-11-11 19:21:43 +01:00
parent c9fb3dfb1d
commit 60ec9739c2
4 changed files with 4 additions and 5 deletions

View File

@@ -253,8 +253,7 @@ async def create_client(
except (
socket.gaierror,
ConnectionRefusedError,
websockets.exceptions.InvalidStatusCode,
websockets.exceptions.InvalidMessage,
websockets.exceptions.InvalidHandshake,
) as e:
logger.error(f"Connection Refused - {e} retrying in {sleep_time}s")
await asyncio.sleep(sleep_time)