From a084ed0c93d09eca3add9b37dc81f961c6001112 Mon Sep 17 00:00:00 2001 From: Azide Date: Thu, 12 Dec 2024 00:37:36 +0800 Subject: [PATCH] =?UTF-8?q?:white=5Fcheck=5Fmark:=20=E4=BF=AE=E5=A4=8Danyi?= =?UTF-8?q?o.open=5Ffile=E5=B8=A6=E6=9D=A5=E7=9A=84=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_bison/script/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_bison/script/cli.py b/nonebot_bison/script/cli.py index e64e65c5..420b1ee1 100644 --- a/nonebot_bison/script/cli.py +++ b/nonebot_bison/script/cli.py @@ -134,7 +134,7 @@ async def subs_import(path: str, format: str): logger.info("正在从yaml导入...") pyyaml = import_yaml_module() - import_items = pyyaml.safe_load(f) + import_items = pyyaml.safe_load(await f.read()) case "json": logger.info("正在从json导入...")