diff options
author | Kyomotoi <[email protected]> | 2021-12-16 23:24:00 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2021-12-16 23:24:00 +0800 |
commit | 77d6d86393991fbf2001231792949e49fb42614c (patch) | |
tree | d1f4f63d5af7c2b308c406daa4a20a93e377a3c9 | |
parent | fdd29bd60962e7a3521b064aa370298764febd44 (diff) | |
download | ATRI-77d6d86393991fbf2001231792949e49fb42614c.tar.gz ATRI-77d6d86393991fbf2001231792949e49fb42614c.tar.bz2 ATRI-77d6d86393991fbf2001231792949e49fb42614c.zip |
🧱 新增报错类型
-rw-r--r-- | ATRI/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index b8d4764..c95867d 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -88,6 +88,10 @@ class FormatError(BaseBotException): prompt = "格式错误" +class ServiceRegisterError(BaseBotException): + prompt = "服务注册错误" + + @run_postprocessor # type: ignore async def _track_error( matcher: Matcher, |