diff options
author | Kyomotoi <[email protected]> | 2022-02-03 20:03:49 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-02-03 20:03:49 +0800 |
commit | 79280a401fa0461868d06909643aa9aad2733b2d (patch) | |
tree | d1a798ddac73d5a12bf14a1877268f20af7d92db /ATRI/plugins/essential.py | |
parent | b3055632c56927aea42f1d7a84c1206d0e1f4bbd (diff) | |
download | ATRI-79280a401fa0461868d06909643aa9aad2733b2d.tar.gz ATRI-79280a401fa0461868d06909643aa9aad2733b2d.tar.bz2 ATRI-79280a401fa0461868d06909643aa9aad2733b2d.zip |
🚑️ 进行一个bug的修
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": |