fix(EmailAccount): Fix always_bcc condition

This commit is contained in:
Corentin Forler 2025-02-20 17:44:53 +01:00 committed by GitHub
parent c600314b4c
commit 07b080abcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -691,8 +691,8 @@ class QueueBuilder:
def prepare_email_content(self):
email_account = self.get_outgoing_email_account()
if isinstance(self._bcc, list) and email_account.always_bcc is not None:
self._bcc.append(str(email_account.always_bcc))
if isinstance(self._bcc, list) and email_account.always_bcc:
self._bcc.append(email_account.always_bcc)
mail = get_email(
recipients=self.final_recipients(),
sender=self.sender,