From 90dc50688e2ec677798f298ae24acc0f349e23e1 Mon Sep 17 00:00:00 2001 From: Weilong Liao <37870767+Soulter@users.noreply.github.com> Date: Mon, 6 Jul 2026 22:54:00 +0800 Subject: [PATCH] Update astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .../platform/sources/qqofficial/qqofficial_platform_adapter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py index 81dfc4e36..d8fd3b500 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py @@ -47,6 +47,8 @@ def _set_raw_message_fields(message: Any, data: dict[str, Any]) -> None: Returns: None. """ + if not isinstance(data, dict): + data = {} message.raw_data = data message.message_type = data.get("message_type") msg_elements = data.get("msg_elements")