From 79280a401fa0461868d06909643aa9aad2733b2d Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Thu, 3 Feb 2022 20:03:49 +0800 Subject: =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20=E8=BF=9B=E8=A1=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AAbug=E7=9A=84=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/essential.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ATRI/plugins/essential.py') diff --git a/ATRI/plugins/essential.py b/ATRI/plugins/essential.py index e3919d5..fa73a3c 100644 --- a/ATRI/plugins/essential.py +++ b/ATRI/plugins/essential.py @@ -346,8 +346,8 @@ def recall_msg_dealer(msg: dict) -> str: temp_m = list() for i in msg: - _type = i["type"] - _data = i["data"] + _type = i.get("type", "idk") + _data = i.get("data", "idk") if _type == "text": temp_m.append(_data["text"]) elif _type == "image": -- cgit v1.2.3