♻️ fix lint problems

This commit is contained in:
FuQuan 2025-11-07 12:13:53 +08:00 committed by KawakazeNotFound
parent 9387888347
commit d12d63a906

View file

@ -674,6 +674,7 @@ async def handle_set_prob(event: GroupMessageEvent, args: Message = CommandArg()
raise ValueError("概率值必须在0-1之间")
except ValueError as e:
await set_prob_handler.finish(f"输入有误,请使用 [0,1] 的浮点数\n{e!s}")
return
state.random_trigger_prob = prob
await set_prob_handler.finish(f"主动回复概率已设为 {prob}")