[Fix] Fix lark reporter issue (#1769)

This commit is contained in:
Mashiro 2024-12-18 19:33:06 +08:00 committed by GitHub
parent 111f817e04
commit 9a5adbde6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -335,7 +335,7 @@ class DLCRunner(BaseRunner):
pass
# Lark Report when failed
if return_code == -1:
if return_code == -1 and self.lark_reporter is not None:
content = f'DLC job failed. Task name: {task_name}'
self.lark_reporter.post(title='DLC job failed', content=content)