From 9ae3d4b10b5a7ff31d04126e81f25f607a8448c7 Mon Sep 17 00:00:00 2001 From: W1NDes Date: Sat, 16 Mar 2024 23:39:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=E6=A8=A1=E6=8B=9F=E5=99=A8=E6=9C=AA?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E6=83=85=E5=86=B5=E4=B8=8B=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E4=B8=8D=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alas.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/alas.py b/alas.py index fbd4f7090..b312e57e2 100644 --- a/alas.py +++ b/alas.py @@ -32,8 +32,13 @@ class AzurLaneAutoScript: try: config = AzurLaneConfig(config_name=self.config_name) return config - except RequestHumanTakeover: - logger.critical('Request human takeover') + except RequestHumanTakeover: + logger.critical('Request human takeover') #解决部分不推送报错 + handle_notify( + self.config.Error_OnePushConfig, + title=f"Alas <{self.config_name}> crashed", + content=f"<{self.config_name}> RequestHumanTakeover", + ) exit(1) except Exception as e: logger.exception(e) @@ -45,8 +50,13 @@ class AzurLaneAutoScript: from module.device.device import Device device = Device(config=self.config) return device - except RequestHumanTakeover: + except RequestHumanTakeover: logger.critical('Request human takeover') + handle_notify( #解决部分不推送报错(如模拟器未开启 + self.config.Error_OnePushConfig, + title=f"Alas <{self.config_name}> crashed", + content=f"<{self.config_name}> RequestHumanTakeover", + ) exit(1) except Exception as e: logger.exception(e)