Fix missing colon.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-08-08 10:28:02 +02:00
parent 2ba70c692f
commit 38b7cae7d7

View file

@ -42,7 +42,7 @@ def _send_email(
msg.attach_alternative(html_template, "text/html")
# is there an attachment to this mail?
if attachment
if attachment:
# figure out the mimetype
mimetype = magic.from_buffer(attachment, mime=True)
msg.attach(attachment_filename, attachment, mimetype)