mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
send_email: Assert custom email payload is a str.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
0dff5f0a27
commit
8b47b5dc34
@@ -538,7 +538,9 @@ def custom_email_sender(
|
||||
# First, we render the Markdown input file just like our
|
||||
# user-facing docs with render_markdown_path.
|
||||
with open(plain_text_template_path, "w") as f:
|
||||
f.write(parsed_email_template.get_payload())
|
||||
payload = parsed_email_template.get_payload()
|
||||
assert isinstance(payload, str)
|
||||
f.write(payload)
|
||||
|
||||
from zerver.lib.templates import render_markdown_path
|
||||
|
||||
|
Reference in New Issue
Block a user