fix msg.data.split(DELIMITER) exception when msg.data is int

This commit is contained in:
fenglui 2023-07-21 03:51:33 +08:00
parent 61ba544282
commit 00a3b91f95

View File

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