From 204f7ca8867096236eb98ff201b446fcbd8caf34 Mon Sep 17 00:00:00 2001 From: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Date: Tue, 8 Jul 2025 14:25:03 +0800 Subject: [PATCH] stop if cannot render template --- services/mailer/mail_workflow_run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/services/mailer/mail_workflow_run.go b/services/mailer/mail_workflow_run.go index a7a2285ba7..9de9d60d82 100644 --- a/services/mailer/mail_workflow_run.go +++ b/services/mailer/mail_workflow_run.go @@ -113,6 +113,7 @@ func sendActionsWorkflowRunStatusEmail(ctx context.Context, repo *repo_model.Rep "Language": locale.Language(), }); err != nil { log.Error("ExecuteTemplate [%s]: %v", tplWorkflowRun, err) + return } msgs := make([]*sender_service.Message, 0, len(tos)) for _, rec := range tos {