From aa35a166107b846f535f091bde5eff8335680ff8 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Sun, 31 Jul 2022 17:48:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpix=E6=97=A0=E5=9B=BE?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E4=BC=9A=E6=8F=90=E9=86=92=E8=80=8C=E6=98=AF?= =?UTF-8?q?=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + plugins/pix_gallery/pix.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68eaef9f..bb3a684a 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,7 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能 * 对nonebot.beta4中PluginMeta进行解析 * 修改webui元祖类型无法正确转换类型 * 查看订阅以图片形式发送 +* 修复pix无图时不会提醒而是出错 ### 2022/7/30 diff --git a/plugins/pix_gallery/pix.py b/plugins/pix_gallery/pix.py index 2d2532b9..e9cacd5e 100755 --- a/plugins/pix_gallery/pix.py +++ b/plugins/pix_gallery/pix.py @@ -149,8 +149,8 @@ async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg()): for _ in range(num): img_url = None author = None - # if not all_image: - # await pix.finish("坏了...发完了,没图了...") + if not all_image: + await pix.finish("坏了...发完了,没图了...") img = random.choice(all_image) all_image.remove(img) if isinstance(img, OmegaPixivIllusts):