From b097b6eddc8bf777acba03ce0d3c3b46280b50c1 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Tue, 3 Oct 2023 15:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8Maa=E5=87=BA=E9=94=99?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=8F=91=E9=80=81=E9=82=AE=E4=BB=B6=E6=8F=90?= =?UTF-8?q?=E9=86=92=E3=80=81=E5=85=B3=E9=97=AD=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/base_schedule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index f08bef48f..3168aad53 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -2433,8 +2433,9 @@ def maa_plan_solver(self, tasks='All', one_time=False): except Exception as e: logger.exception(e) self.MAA = None + self.device.exit(self.package_name) + self.send_email(str(e), "Maa调用出错!") remaining_time = (self.tasks[0].time - datetime.now()).total_seconds() if remaining_time > 0: logger.info(f"休息 {format_time(remaining_time)},到{self.tasks[0].time.strftime('%H:%M:%S')}开始工作") time.sleep(remaining_time) - self.device.exit(self.package_name)