From 38b7cae7d70dacbf19b43fc7aa7cceb11b746587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Thu, 8 Aug 2019 10:28:02 +0200 Subject: [PATCH] Fix missing colon. --- src/utils/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/email.py b/src/utils/email.py index e172c87f..ad79b36e 100644 --- a/src/utils/email.py +++ b/src/utils/email.py @@ -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)