From 3db128785e4c90e96d2b6ff299887159703fe1e2 Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Mon, 23 May 2022 21:52:08 +0800 Subject: [PATCH] Update __init__.py --- plugins/pixiv_rank_search/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/pixiv_rank_search/__init__.py b/plugins/pixiv_rank_search/__init__.py index 6f595643..bace5be7 100755 --- a/plugins/pixiv_rank_search/__init__.py +++ b/plugins/pixiv_rank_search/__init__.py @@ -163,7 +163,7 @@ async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg()): info_list = None num = 10 page = 1 - if (n := len(msg)) >= 1: + if (n := len(msg)) > 0: keyword = msg[0].replace("#"," ") if n > 1: if not is_number(msg[1]):