finish general add_sub

This commit is contained in:
felinae98
2022-02-17 00:51:05 +08:00
parent ad6059d631
commit 87a69305f8
2 changed files with 36 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ def do_add_sub(add_sub: Type[Matcher]):
try:
name = await check_sub_target(state["platform"], target)
if not name:
await add_sub.reject("id输入错误")
raise ValueError
state["id"] = target
state["name"] = name
except: