From 4d5332fe25e4e27aa7acf86f904d5bf006c2e2dd Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Wed, 30 Apr 2025 22:39:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E6=97=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=8D=E5=AD=98=E5=9C=A8ws=5Freverse=5Ftoken?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py index 9cf6b5bab..a1822c5e9 100644 --- a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +++ b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py @@ -49,7 +49,9 @@ class AiocqhttpAdapter(Platform): use_ws_reverse=True, import_name="aiocqhttp", api_timeout_sec=180, - access_token=platform_config["ws_reverse_token"], + access_token=platform_config.get( + "ws_reverse_token" + ), # 以防旧版本配置不存在 ) @self.bot.on_request()