修复无消息时reset报错

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

View File

@ -36,7 +36,8 @@ class MarshoContext:
重置上下文 重置上下文
""" """
target_dict = self._get_target_dict(is_private) 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: def build(self, target_id: str, is_private: bool) -> list:
""" """