mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 12:23:00 +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", []),
|
cats=state.get("cats", []),
|
||||||
tags=state.get("tags", []),
|
tags=state.get("tags", []),
|
||||||
)
|
)
|
||||||
await add_sub.finish("添加 {} 成功".format(state["name"]))
|
|
||||||
except SubscribeDupException:
|
except SubscribeDupException:
|
||||||
await add_sub.finish(f"添加 {state['name']} 失败: 已存在该订阅")
|
await add_sub.finish(f"添加 {state['name']} 失败: 已存在该订阅")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await add_sub.finish(f"添加 {state['name']} 失败: {e}")
|
await add_sub.finish(f"添加 {state['name']} 失败: {e}")
|
||||||
|
await add_sub.finish("添加 {} 成功".format(state["name"]))
|
||||||
|
|
||||||
|
|
||||||
def do_query_sub(query_sub: Type[Matcher]):
|
def do_query_sub(query_sub: Type[Matcher]):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user