Fix missing colon.
This commit is contained in:
parent
2ba70c692f
commit
38b7cae7d7
|
@ -42,7 +42,7 @@ def _send_email(
|
||||||
msg.attach_alternative(html_template, "text/html")
|
msg.attach_alternative(html_template, "text/html")
|
||||||
|
|
||||||
# is there an attachment to this mail?
|
# is there an attachment to this mail?
|
||||||
if attachment
|
if attachment:
|
||||||
# figure out the mimetype
|
# figure out the mimetype
|
||||||
mimetype = magic.from_buffer(attachment, mime=True)
|
mimetype = magic.from_buffer(attachment, mime=True)
|
||||||
msg.attach(attachment_filename, attachment, mimetype)
|
msg.attach(attachment_filename, attachment, mimetype)
|
||||||
|
|
Loading…
Reference in a new issue