diff options
Diffstat (limited to 'ATRI/plugins/essential.py')
-rw-r--r-- | ATRI/plugins/essential.py | 4 |
1 files changed, 2 insertions, 2 deletions
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": |