From 01beec6ced961286cb8a3c5f8f45d1dc854427b5 Mon Sep 17 00:00:00 2001 From: jungheil Date: Fri, 11 Oct 2024 17:22:19 +0800 Subject: [PATCH] fix: ai_block_io data access bug --- .../src/python/sentryPlugins/ai_block_io/data_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysSentry-1.0.2/src/python/sentryPlugins/ai_block_io/data_access.py b/sysSentry-1.0.2/src/python/sentryPlugins/ai_block_io/data_access.py index bdc484a..ed997e6 100644 --- a/sysSentry-1.0.2/src/python/sentryPlugins/ai_block_io/data_access.py +++ b/sysSentry-1.0.2/src/python/sentryPlugins/ai_block_io/data_access.py @@ -43,7 +43,7 @@ def check_collect_valid(period): except Exception as e: logging.warning(f"get valid devices failed, occur exception: {e}") return None - if data.empty(): + if not data: logging.warning(f"get valid devices failed, return {data_raw}") return None return [k for k in data.keys()] -- Gitee