From 461f14631b72e76128988dbaca5bb1221e9393dd Mon Sep 17 00:00:00 2001 From: Place Jean-Marie Date: Tue, 26 Oct 2021 19:27:51 +0200 Subject: [PATCH] fix: bcc as list in Message build --- app/scodoc/sco_bulletins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_bulletins.py b/app/scodoc/sco_bulletins.py index 0a88f648a..98f3a917e 100644 --- a/app/scodoc/sco_bulletins.py +++ b/app/scodoc/sco_bulletins.py @@ -987,7 +987,7 @@ def mail_bulletin(formsemestre_id, I, pdfdata, filename, recipient_addr): bcc = copy_addr.strip() else: bcc = "" - msg = Message(subject, sender=sender, recipients=recipients, bcc=bcc) + msg = Message(subject, sender=sender, recipients=recipients, bcc=[bcc]) msg.body = hea # Attach pdf