perf: catching a more specific exception type instead

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Soulter
2025-04-23 00:08:03 +08:00
committed by GitHub
parent 40d6e77964
commit 70446be108
+1 -1
View File
@@ -805,7 +805,7 @@ UID: {user_id} 此 ID 可用于设置管理员。
if self.ltm:
try:
await self.ltm.remove_session(event=message)
except BaseException as e:
except Exception as e:
logger.error(f"清理聊天增强记录失败: {e}")
message.set_result(