This commit is contained in:
student_2333 2024-10-30 00:23:05 +08:00
parent ca3be73054
commit 308d8af559
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ require("nonebot_plugin_uninfo")
from . import handler as handler from . import handler as handler
from .config import Config from .config import Config
__version__ = "2.1.1" __version__ = "2.1.1.post1"
__plugin_meta__ = PluginMetadata( __plugin_meta__ = PluginMetadata(
name="自动撤回奶龙", name="自动撤回奶龙",
description="一个基于图像分类模型的简单插件~", description="一个基于图像分类模型的简单插件~",

View File

@ -139,8 +139,8 @@ async def check_frames(
return ok return ok
for f in frames: for f in frames:
if (sem.locked() or signal.done()) and (await wait_result()): if (sem.locked() or signal.done()) and (r := await wait_result())[0]:
return True, None return r
asyncio.create_task(task(f)) asyncio.create_task(task(f))
return await wait_result() return await wait_result()