mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2024-11-23 01:27:38 +08:00
⚡ 修复无消息时reset报错
This commit is contained in:
parent
2a59434329
commit
c44317f4c5
@ -36,7 +36,8 @@ class MarshoContext:
|
||||
重置上下文
|
||||
"""
|
||||
target_dict = self._get_target_dict(is_private)
|
||||
target_dict[target_id].clear()
|
||||
if target_id in target_dict:
|
||||
target_dict[target_id].clear()
|
||||
|
||||
def build(self, target_id: str, is_private: bool) -> list:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user