mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
fix error
This commit is contained in:
parent
1543ba21d2
commit
0d3198c8a1
@ -215,11 +215,11 @@ def do_add_sub(add_sub: Type[Matcher]):
|
||||
cats=state.get("cats", []),
|
||||
tags=state.get("tags", []),
|
||||
)
|
||||
await add_sub.finish("添加 {} 成功".format(state["name"]))
|
||||
except SubscribeDupException:
|
||||
await add_sub.finish(f"添加 {state['name']} 失败: 已存在该订阅")
|
||||
except Exception as e:
|
||||
await add_sub.finish(f"添加 {state['name']} 失败: {e}")
|
||||
await add_sub.finish("添加 {} 成功".format(state["name"]))
|
||||
|
||||
|
||||
def do_query_sub(query_sub: Type[Matcher]):
|
||||
|
Loading…
x
Reference in New Issue
Block a user