修复无消息时reset报错

This commit is contained in:
MoeSnowyFox 2024-11-17 02:48:17 +08:00
parent 2a59434329
commit c44317f4c5

View File

@ -36,6 +36,7 @@ class MarshoContext:
重置上下文 重置上下文
""" """
target_dict = self._get_target_dict(is_private) target_dict = self._get_target_dict(is_private)
if target_id in target_dict:
target_dict[target_id].clear() target_dict[target_id].clear()
def build(self, target_id: str, is_private: bool) -> list: def build(self, target_id: str, is_private: bool) -> list: