From 6f56393ad0a2df40c879e628e88d11a3e0eca021 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Sat, 30 Sep 2023 18:41:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E5=AF=B9timeout=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/riic_report_analysis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/riic_report_analysis.py b/apps/riic_report_analysis.py index e43becd..c38b701 100644 --- a/apps/riic_report_analysis.py +++ b/apps/riic_report_analysis.py @@ -225,6 +225,7 @@ class RIICReportAnalysis: for i in output_list ], ) + return except Exception as e: err_msg = "出错啦!\n" err_msg += f"date_list = {date_list}\n" @@ -232,7 +233,8 @@ class RIICReportAnalysis: err_msg += f"gold_list = {gold_list}\n" err_msg += f"exp_list = {exp_list}\n" err_msg += str(e) - await chain.onebot_reply(Text(err_msg), At("1040110848")) + if str(e) != "timed out": + await chain.onebot_reply(Text(err_msg), At("1040110848")) @as_command(