From d4ba45afd544e7d0f532eff5011bd289e10e26bf Mon Sep 17 00:00:00 2001 From: Ruoqi Yang Date: Sun, 25 Sep 2022 15:35:49 +0800 Subject: fix: handle text msg recall fix: BaseBotException is not catched by nonebot (and printed) fix: database startup at module level to enable load a single plugin --- ATRI/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ATRI/exceptions.py') diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index 4d97799..27ba426 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -45,7 +45,7 @@ def load_error(track_id: str) -> dict: return json.loads(path.read_bytes()) -class BaseBotException(BaseException): +class BaseBotException(Exception): prompt: Optional[str] = "ignore" def __init__(self, prompt: Optional[str]) -> None: -- cgit v1.2.3