Merge pull request #976 from fenglui/master

fix msg.data.split(DELIMITER) exception when msg.data is int
这个提交包含在:
binary-husky
2023-07-21 17:02:29 +08:00
提交者 GitHub
当前提交 dd7a01cda5

查看文件

@@ -519,7 +519,11 @@ class _ChatHub:
resp_txt_no_link = "" resp_txt_no_link = ""
while not final: while not final:
msg = await self.wss.receive() msg = await self.wss.receive()
try:
objects = msg.data.split(DELIMITER) objects = msg.data.split(DELIMITER)
except :
continue
for obj in objects: for obj in objects:
if obj is None or not obj: if obj is None or not obj:
continue continue