diff --git a/plugins/tools/action_log_system.py b/plugins/tools/action_log_system.py index ac0316c..7d6138c 100644 --- a/plugins/tools/action_log_system.py +++ b/plugins/tools/action_log_system.py @@ -45,6 +45,8 @@ class ActionLogSystem(Plugin): return False if data[0].status == 1: data.pop(0) + if not data: + return False if data[-1].status == 0: data.pop(-1) return await self.action_log_service.add(data)