Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复阻止事件传递信号无效的问题 #60

Merged
merged 8 commits into from
Nov 18, 2020
8 changes: 8 additions & 0 deletions docs/.vuepress/public/plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@
"desc": "通过戳一戳获取服务器状态",
"author": "yanyongyu",
"repo": "cscs181/QQ-GitHub-Bot/tree/master/src/plugins/nonebot_plugin_status"
},
{
"id": "haruka_bot",
"link": "haruka-bot",
"name": "HarukaBot",
"desc": "将B站UP主的动态和直播信息推送至QQ",
"author": "SK-415",
"repo": "SK-415/HarukaBot"
}
]
2 changes: 1 addition & 1 deletion nonebot/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async def handle_event(bot: Bot, event: Event):
results = await asyncio.gather(*pending_tasks, return_exceptions=True)

for result in results:
if result is StopPropagation:
if isinstance(result, StopPropagation):
if not break_flag:
break_flag = True
logger.debug("Stop event propagation")
Expand Down