mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
🐛 查询订阅时提示不存在的平台 (#584)
* 🐛 查询订阅时提示不存在的平台 fix #515 * 💄 auto fix by pre-commit hooks * 🐛 删除订阅时,获取详细信息跳过不存在的platform * ✅ 添加对于不存在的平台的单元测试 * 🐛 删除订阅时跳过不存在的platform * 💄 规范化订阅列表的输出 * 💄 规范化订阅列表的输出 * 💄 规范化订阅列表的输出 * 💄 规范化订阅列表的输出 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -52,6 +52,8 @@ async def handle_insert_new_target(platform_name: str, target: T_Target):
|
||||
|
||||
|
||||
async def handle_delete_target(platform_name: str, target: T_Target):
|
||||
if platform_name not in platform_manager:
|
||||
return
|
||||
platform = platform_manager[platform_name]
|
||||
scheduler_obj = scheduler_dict[platform.site]
|
||||
scheduler_obj.delete_schedulable(platform_name, target)
|
||||
|
||||
Reference in New Issue
Block a user