oxarchive 0.3.9__tar.gz → 0.3.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {oxarchive-0.3.9 → oxarchive-0.3.10}/PKG-INFO +1 -1
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/__init__.py +1 -1
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/websocket.py +2 -1
- {oxarchive-0.3.9 → oxarchive-0.3.10}/pyproject.toml +1 -1
- {oxarchive-0.3.9 → oxarchive-0.3.10}/.gitignore +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/README.md +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/client.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/http.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/resources/__init__.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/resources/funding.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/resources/instruments.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/resources/openinterest.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/resources/orderbook.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/resources/trades.py +0 -0
- {oxarchive-0.3.9 → oxarchive-0.3.10}/oxarchive/types.py +0 -0
|
@@ -32,6 +32,7 @@ from typing import Any, Callable, Optional, Set, Union
|
|
|
32
32
|
|
|
33
33
|
try:
|
|
34
34
|
from websockets.asyncio.client import connect as ws_connect, ClientConnection
|
|
35
|
+
from websockets.exceptions import ConnectionClosed
|
|
35
36
|
from websockets.protocol import State as WsState
|
|
36
37
|
except ImportError:
|
|
37
38
|
raise ImportError(
|
|
@@ -650,7 +651,7 @@ class OxArchiveWs:
|
|
|
650
651
|
try:
|
|
651
652
|
message = await self._ws.recv()
|
|
652
653
|
self._handle_message(message)
|
|
653
|
-
except
|
|
654
|
+
except ConnectionClosed as e:
|
|
654
655
|
logger.info(f"Connection closed: {e.code} {e.reason}")
|
|
655
656
|
if self._on_close:
|
|
656
657
|
self._on_close(e.code, e.reason)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|