fix msg.data.split(DELIMITER) exception when msg.data is int
This commit is contained in:
parent
61ba544282
commit
00a3b91f95
@ -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()
|
||||||
objects = msg.data.split(DELIMITER)
|
try:
|
||||||
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user