From 63d7a5d6b5af6d651a393778db0672625ed7f74a Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 18 Dec 2024 00:04:49 +0800 Subject: [PATCH] :bug: Fix import action log index error --- plugins/tools/action_log_system.py | 2 ++ 1 file changed, 2 insertions(+) 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)