mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-30 09:10:01 +08:00
fix(auth_ban): prevent processing of null results in ban handling logic
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user