Email params should use str when injecting into the body (#854)

This commit is contained in:
Kerem Yilmaz
2024-09-18 22:08:14 -07:00
committed by GitHub
parent d4a050c2a6
commit 5b136b55e0

View File

@@ -917,7 +917,7 @@ class SendEmailBlock(Block):
if self.body and workflow_run_context.has_parameter(self.body) and workflow_run_context.has_value(self.body):
# We're purposely not decrypting the body parameter value here because we don't want to expose secrets
body_parameter_value = workflow_run_context.get_value(self.body)
msg.set_content(body_parameter_value)
msg.set_content(str(body_parameter_value))
else:
msg.set_content(self.body)