Skip to content

Commit

Permalink
fix msg.data.split(DELIMITER) exception when msg.data is int
Browse files Browse the repository at this point in the history
  • Loading branch information
luijinrong committed Jul 20, 2023
1 parent 61ba544 commit 00a3b91
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 00a3b91

Please sign in to comment.