mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2024-11-27 07:15:03 +08:00
🐛修复编码问题
This commit is contained in:
parent
39aa462483
commit
f710ed4b8e
@ -78,8 +78,8 @@ class MarshoTools:
|
|||||||
json_path = os.path.join(package_path, 'tools.json')
|
json_path = os.path.join(package_path, 'tools.json')
|
||||||
if os.path.exists(json_path):
|
if os.path.exists(json_path):
|
||||||
try:
|
try:
|
||||||
with open(json_path, 'r') as json_file:
|
with open(json_path, 'r', encoding="utf-8") as json_file:
|
||||||
data = json.load(json_file,encoding="utf-8")
|
data = json.load(json_file)
|
||||||
for i in data:
|
for i in data:
|
||||||
self.tools_list.append(i)
|
self.tools_list.append(i)
|
||||||
# 导入包
|
# 导入包
|
||||||
|
Loading…
Reference in New Issue
Block a user