summaryrefslogtreecommitdiff
path: root/ATRI/plugins/essential.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-02-03 20:03:49 +0800
committerKyomotoi <[email protected]>2022-02-03 20:03:49 +0800
commit79280a401fa0461868d06909643aa9aad2733b2d (patch)
treed1a798ddac73d5a12bf14a1877268f20af7d92db /ATRI/plugins/essential.py
parentb3055632c56927aea42f1d7a84c1206d0e1f4bbd (diff)
downloadATRI-79280a401fa0461868d06909643aa9aad2733b2d.tar.gz
ATRI-79280a401fa0461868d06909643aa9aad2733b2d.tar.bz2
ATRI-79280a401fa0461868d06909643aa9aad2733b2d.zip
🚑️ 进行一个bug的修
Diffstat (limited to 'ATRI/plugins/essential.py')
-rw-r--r--ATRI/plugins/essential.py4
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":