fix(auth_ban): prevent processing of null results in ban handling logic

This commit is contained in:
HibiKier
2025-12-23 15:26:32 +08:00
parent 47ec5bc7b9
commit 4a76c86e2e
@@ -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))