From 2bc1d05393f36c7b1ce5499f698ac3a2f1d3be0d Mon Sep 17 00:00:00 2001 From: Lint Action Date: Fri, 30 Dec 2022 06:42:47 +0000 Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/status.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ATRI') diff --git a/ATRI/plugins/status.py b/ATRI/plugins/status.py index dbf95dc..70ea18d 100644 --- a/ATRI/plugins/status.py +++ b/ATRI/plugins/status.py @@ -52,9 +52,10 @@ async def _(): bot = None if not limiter.check("114514"): msg = "状态检查提示已达限制, 将冷却 6h" - + try: - if bot: await plugin.send_to_master(msg) + if bot: + await plugin.send_to_master(msg) limiter.increase("114514") except Exception: return @@ -134,4 +135,4 @@ def get_status() -> Tuple[str, bool]: msg=msg, ) - return unescape(msg0), is_ok \ No newline at end of file + return unescape(msg0), is_ok -- cgit v1.2.3