Skip to content

Commit

Permalink
🐛修复编码问题,fk windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Asankilp committed Nov 23, 2024
1 parent c1a3f19 commit 39aa462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_marshoai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def load_tools(self, tools_dir):
if os.path.exists(json_path):
try:
with open(json_path, 'r') as json_file:
data = json.load(json_file)
data = json.load(json_file,encoding="utf-8")
for i in data:
self.tools_list.append(i)
# 导入包
Expand Down

0 comments on commit 39aa462

Please sign in to comment.