Merge pull request #976 from fenglui/master

fix msg.data.split(DELIMITER) exception when msg.data is int
This commit is contained in:
binary-husky 2023-07-21 17:02:29 +08:00 committed by GitHub
commit dd7a01cda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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