fix(notify):增加三处异常提醒

This commit is contained in:
W1NDes 2025-08-24 23:04:39 +08:00
parent 3a9351099d
commit 87047a515b

18
alas.py
View File

@ -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):