diff --git a/alas.py b/alas.py index e0860b4d1..38650f938 100644 --- a/alas.py +++ b/alas.py @@ -47,6 +47,12 @@ class AzurLaneAutoScript: exit(1) except Exception as e: logger.exception(e) + self.save_error_log() + handle_notify( + self.config.Error_OnePushConfig, + title=f"Alas <{self.config_name}> crashed", + content=f"<{self.config_name}> Exception occured", + ) exit(1) @cached_property @@ -65,6 +71,12 @@ class AzurLaneAutoScript: exit(1) except Exception as e: logger.exception(e) + self.save_error_log() + handle_notify( + self.config.Error_OnePushConfig, + title=f"Alas <{self.config_name}> crashed", + content=f"<{self.config_name}> Exception occured", + ) exit(1) @cached_property @@ -75,6 +87,12 @@ class AzurLaneAutoScript: return checker except Exception as e: logger.exception(e) + self.save_error_log() + handle_notify( + self.config.Error_OnePushConfig, + title=f"Alas <{self.config_name}> crashed", + content=f"<{self.config_name}> Exception occured", + ) exit(1) def handle_otherlogin(self):