Skip to content
Snippets Groups Projects
Commit 248ce9c2 authored by Tim Repke's avatar Tim Repke
Browse files

fix build

parent d0c5e4b5
No related branches found
No related tags found
1 merge request!90Pipeline integration (dramatiq)
Pipeline #3314 passed
......@@ -48,7 +48,7 @@ def construct_email(recipients: list[str],
email = EmailMessage()
email.set_content(message)
email['Subject'] = subject
email['From'] = sender
email['From'] = sender # type: ignore[assignment]
email['To'] = ', '.join(recipients)
return email
......@@ -68,7 +68,7 @@ async def send_email(email: EmailMessage) -> bool:
if email['From'] is None:
del email['From']
email['From'] = settings.EMAIL.SENDER
email['From'] = settings.EMAIL.SENDER # type: ignore[assignment]
client = SMTP(hostname=settings.EMAIL.SMTP_HOST,
port=settings.EMAIL.SMTP_PORT,
......@@ -114,7 +114,7 @@ def send_email_sync(email: EmailMessage) -> bool:
if email['From'] is None:
del email['From']
email['From'] = settings.EMAIL.SENDER
email['From'] = settings.EMAIL.SENDER # type: ignore[assignment]
try:
client: SMTP_SSL | SMTPSync
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment