From 4a76c86e2e6da511f20a816744a2a943994f4779 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Tue, 23 Dec 2025 15:26:32 +0800 Subject: [PATCH] fix(auth_ban): prevent processing of null results in ban handling logic --- zhenxun/builtin_plugins/hooks/auth/auth_ban.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zhenxun/builtin_plugins/hooks/auth/auth_ban.py b/zhenxun/builtin_plugins/hooks/auth/auth_ban.py index de78eb18..55530b7b 100644 --- a/zhenxun/builtin_plugins/hooks/auth/auth_ban.py +++ b/zhenxun/builtin_plugins/hooks/auth/auth_ban.py @@ -175,6 +175,8 @@ async def auth_ban( results or DataAccess._NULL_RESULT, ) else: + if results == DataAccess._NULL_RESULT: + return tmp_results: list[BanConsole] = [] for r in results: tmp_results.append(CacheRoot._deserialize_value(r, BanConsole))