Fix bug in BfxWebsocketClient::close (bfxapi.websocket.client.bfx_websocket_client).

This commit is contained in:
Davide Casale
2023-04-16 21:16:18 +02:00
parent 6d868a8287
commit e15b52eabd
2 changed files with 7 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ class BfxWebsocketBucket:
try:
await _connection()
except websockets.ConnectionClosedError as error:
except websockets.exceptions.ConnectionClosedError as error:
if error.code in (1006, 1012):
self.on_open_event.clear()