Skip to content
Snippets Groups Projects
Commit c6768a93 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Fix bug with single recipient

parent 653bcc51
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,8 @@ def send_mail(
if not recipients:
recipients = admin_emails
if isinstance(recipients, str):
recipients = [recipients]
message = MIMEMultipart('alternative')
message['Subject'] = subject
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment