令异常符合格式

This commit is contained in:
hemengyang
2022-01-12 18:45:35 +08:00
parent 187532930b
commit edb20a4786
3 changed files with 9 additions and 15 deletions

View File

@ -41,9 +41,8 @@ class Event(abc.ABC, BaseModel):
"""
获取事件日志信息的方法,通常你不需要修改这个方法,只有当希望 NoneBot 隐藏该事件日志时,可以抛出 `NoLogException` 异常。
:异常:
- `NoLogException`
异常:
NoLogException
"""
return f"[{self.get_event_name()}]: {self.get_event_description()}"