Skip to content

Commit

Permalink
bugfix: 某些依赖版本可能出现类型错误 #865
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao authored and Keldos-Li committed Aug 19, 2023
1 parent afdcf20 commit f61282d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _decode_chat_response(self, response):
chunk_length = len(chunk)
try:
chunk = json.loads(chunk[6:])
except json.JSONDecodeError:
except:
print(i18n("JSON解析错误,收到的内容: ") + f"{chunk}")
error_msg += chunk
continue
Expand Down

0 comments on commit f61282d

Please sign in to comment.