diff --git a/astrbot/dashboard/server.py b/astrbot/dashboard/server.py index 70809ab3a..6fc0651fa 100644 --- a/astrbot/dashboard/server.py +++ b/astrbot/dashboard/server.py @@ -127,7 +127,9 @@ class AstrBotDashboard: logger.info(f"正在启动 WebUI, 监听地址: http://{host}:{port}") if host == "0.0.0.0": - logger.info("提示: WebUI 将监听所有网络接口,请注意安全。(可在 data/cmd_config.json 中配置 dashboard.host 以修改 host)") + logger.info( + "提示: WebUI 将监听所有网络接口,请注意安全。(可在 data/cmd_config.json 中配置 dashboard.host 以修改 host)" + ) if host not in ["localhost", "127.0.0.1"]: try: diff --git a/packages/astrbot/main.py b/packages/astrbot/main.py index c2c4dfc32..5eae101ae 100644 --- a/packages/astrbot/main.py +++ b/packages/astrbot/main.py @@ -323,7 +323,9 @@ UID: {user_id} 此 ID 可用于设置管理员。 async def dwl(self, event: AstrMessageEvent, sid: str): """删除白名单。dwl """ try: - self.context.get_config()["platform_settings"]["id_whitelist"].remove(str(sid)) + self.context.get_config()["platform_settings"]["id_whitelist"].remove( + str(sid) + ) self.context.get_config().save_config() event.set_result(MessageEventResult().message("删除白名单成功。")) except ValueError: