diff options
Diffstat (limited to 'ATRI/exceptions.py')
-rw-r--r-- | ATRI/exceptions.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index ebf23de..e2fe475 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding:utf-8 -*- +''' +File: exceptions.py +Created Date: 2021-02-02 18:24:59 +Author: Kyomotoi +Email: [email protected] +License: GPLv3 +Project: https://github.com/Kyomotoi/ATRI +-------- +Last Modified: Sunday, 7th March 2021 3:00:35 pm +Modified By: Kyomotoi ([email protected]) +-------- +Copyright (c) 2021 Kyomotoi +''' + import time import json import string @@ -91,10 +107,9 @@ class GetStatusError(BaseBotException): @run_postprocessor # type: ignore -async def _(matcher: Matcher, exception: Optional[Exception], +async def _track_error(matcher: Matcher, exception: Optional[Exception], event: MessageEvent, state: dict) -> None: """检测Bot运行中的报错,并进行提醒""" - print(114514) if not exception: return |