From 24dbe7d014172a06dc874ee38b5a465b137612f8 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 29 Dec 2018 09:44:25 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=E8=B0=83=E6=95=B4WebsocketClient=E7=9A=84?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E4=BF=A1=E6=81=AF=E8=AE=B0=E5=BD=95=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/api/websocket/WebsocketClient.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/vnpy/api/websocket/WebsocketClient.py b/vnpy/api/websocket/WebsocketClient.py index 8583d4f7..d395c4fd 100644 --- a/vnpy/api/websocket/WebsocketClient.py +++ b/vnpy/api/websocket/WebsocketClient.py @@ -270,9 +270,4 @@ class WebsocketClient(object): """ 用于Debug: 记录最后一次发送出去的text """ - try: - # 尝试解包,解不了就算 - text = str(self.unpackData(text)) - except: - pass - self._lastReceivedText = text[:1000] + self._lastReceivedText = text[:1000] \ No newline at end of file