From f710ed4b8e19fe78e46b27ecbfe41b5292f30507 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Sun, 24 Nov 2024 01:44:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=E4=BF=AE=E5=A4=8D=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_marshoai/models.py b/nonebot_plugin_marshoai/models.py index 23cd480..61d6ecb 100644 --- a/nonebot_plugin_marshoai/models.py +++ b/nonebot_plugin_marshoai/models.py @@ -78,8 +78,8 @@ class MarshoTools: json_path = os.path.join(package_path, 'tools.json') if os.path.exists(json_path): try: - with open(json_path, 'r') as json_file: - data = json.load(json_file,encoding="utf-8") + with open(json_path, 'r', encoding="utf-8") as json_file: + data = json.load(json_file) for i in data: self.tools_list.append(i) # 导入包