fix pre-commit after the 'stripe newlines from email block' PR (#1882)

This commit is contained in:
Shuchang Zheng 2025-03-04 10:31:03 -05:00 committed by GitHub
parent 8c4dd54e33
commit 64ad052ab3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1651,7 +1651,9 @@ class SendEmailBlock(Block):
self, workflow_run_context: WorkflowRunContext, workflow_run_id: str self, workflow_run_context: WorkflowRunContext, workflow_run_id: str
) -> EmailMessage: ) -> EmailMessage:
msg = EmailMessage() msg = EmailMessage()
msg["Subject"] = self.subject.strip().replace('\n', '').replace('\r', '') + f" - Workflow Run ID: {workflow_run_id}" msg["Subject"] = (
self.subject.strip().replace("\n", "").replace("\r", "") + f" - Workflow Run ID: {workflow_run_id}"
)
msg["To"] = ", ".join(self.get_real_email_recipients(workflow_run_context)) msg["To"] = ", ".join(self.get_real_email_recipients(workflow_run_context))
msg["BCC"] = self.sender # BCC the sender so there is a record of the email being sent msg["BCC"] = self.sender # BCC the sender so there is a record of the email being sent
msg["From"] = self.sender msg["From"] = self.sender