Skip to content

Commit

Permalink
Merge pull request #976 from fenglui/master
Browse files Browse the repository at this point in the history
fix msg.data.split(DELIMITER) exception when msg.data is int
  • Loading branch information
binary-husky committed Jul 21, 2023
2 parents 61ba544 + 00a3b91 commit dd7a01c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion request_llm/edge_gpt_free.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,11 @@ async def ask_stream(
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
Expand Down

0 comments on commit dd7a01c

Please sign in to comment.