From 3b3d13e0cf9d76981c5a915624d001b10d25ccd1 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Mon, 3 Oct 2022 08:07:04 +0800 Subject: =?UTF-8?q?=F0=9F=8D=BB=20=E4=BF=AE=E5=A4=8D=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/console/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ATRI/plugins/console/__init__.py b/ATRI/plugins/console/__init__.py index 2bd14c8..575ecd9 100644 --- a/ATRI/plugins/console/__init__.py +++ b/ATRI/plugins/console/__init__.py @@ -16,7 +16,7 @@ gen_console_key = Console().cmd_as_group("auth", "获取进入网页后台的凭 @gen_console_key.got("is_pub_n", "咱的运行环境是否有公网(y/n)") async def _(event: PrivateMessageEvent, is_pub_n: str = ArgPlainText("is_pub_n")): data_path = CONSOLE_DIR / "data.json" - if not data_path.is_file: + if not data_path.is_file(): with open(data_path, "w", encoding="utf-8") as w: w.write(json.dumps(dict())) -- cgit v1.2.3