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导入...")