Merge pull request #10910 from freqtrade/dependabot/pip/develop/websockets-14.0

chore(deps): bump websockets from 13.1 to 14.0
This commit is contained in:
Matthias
2024-11-11 19:48:05 +01:00
committed by GitHub
5 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
from typing import Any from typing import Any
from fastapi import WebSocket as FastAPIWebSocket from fastapi import WebSocket as FastAPIWebSocket
from websockets.client import WebSocketClientProtocol as WebSocket from websockets.asyncio.client import ClientConnection as WebSocket
from freqtrade.rpc.api_server.ws.types import WebSocketType from freqtrade.rpc.api_server.ws.types import WebSocketType
+1 -1
View File
@@ -1,7 +1,7 @@
from typing import Any, TypeVar from typing import Any, TypeVar
from fastapi import WebSocket as FastAPIWebSocket from fastapi import WebSocket as FastAPIWebSocket
from websockets.client import WebSocketClientProtocol as WebSocket from websockets.asyncio.client import ClientConnection as WebSocket
WebSocketType = TypeVar("WebSocketType", FastAPIWebSocket, WebSocket) WebSocketType = TypeVar("WebSocketType", FastAPIWebSocket, WebSocket)
+1 -2
View File
@@ -213,8 +213,7 @@ class ExternalMessageConsumer:
except ( except (
socket.gaierror, socket.gaierror,
ConnectionRefusedError, ConnectionRefusedError,
websockets.exceptions.InvalidStatusCode, websockets.exceptions.InvalidHandshake,
websockets.exceptions.InvalidMessage,
) as e: ) as e:
logger.error(f"Connection Refused - {e} retrying in {self.sleep_time}s") logger.error(f"Connection Refused - {e} retrying in {self.sleep_time}s")
await asyncio.sleep(self.sleep_time) await asyncio.sleep(self.sleep_time)
+1 -1
View File
@@ -57,7 +57,7 @@ pytz==2024.2
schedule==1.2.2 schedule==1.2.2
#WS Messages #WS Messages
websockets==13.1 websockets==14.0
janus==1.1.0 janus==1.1.0
ast-comments==1.2.2 ast-comments==1.2.2
+1 -2
View File
@@ -253,8 +253,7 @@ async def create_client(
except ( except (
socket.gaierror, socket.gaierror,
ConnectionRefusedError, ConnectionRefusedError,
websockets.exceptions.InvalidStatusCode, websockets.exceptions.InvalidHandshake,
websockets.exceptions.InvalidMessage,
) as e: ) as e:
logger.error(f"Connection Refused - {e} retrying in {sleep_time}s") logger.error(f"Connection Refused - {e} retrying in {sleep_time}s")
await asyncio.sleep(sleep_time) await asyncio.sleep(sleep_time)