From 248ce9c2806c43be1e1289da854d57e112fe7d58 Mon Sep 17 00:00:00 2001
From: Tim Repke <repke@mcc-berlin.net>
Date: Tue, 23 Apr 2024 20:15:11 +0200
Subject: [PATCH] fix build

---
 server/util/email.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/util/email.py b/server/util/email.py
index 1a5bdab..11eeebd 100644
--- a/server/util/email.py
+++ b/server/util/email.py
@@ -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
-- 
GitLab