Compare commits

...

3 Commits

Author SHA1 Message Date
f9bede759d
Merge pull request #31 from Ayx03/patch-1
Some checks failed
SyncMirror / sync (push) Has been cancelled
执行过程中出错时在推送消息后重新抛出异常以便 GitHub Actions 获知状态
2024-12-02 17:13:33 +08:00
2153c92579
Specified error type 2024-12-02 17:13:14 +08:00
ImAyx
b709205360
重新抛出异常以便 GitHub Actions 获知状态 2024-12-02 17:11:29 +08:00

View File

@ -219,4 +219,5 @@ if __name__ == "__main__":
sct_msg += f"执行过程中出错:{str(e)}" sct_msg += f"执行过程中出错:{str(e)}"
if sct_key: if sct_key:
httpx.get(sct_url, params={"desp": sct_msg}) httpx.get(sct_url, params={"desp": sct_msg})
raise RunError(str(e))
logger.info("所有任务已经执行完毕!") logger.info("所有任务已经执行完毕!")