Skip to content
5 changes: 1 addition & 4 deletions backend/treeckle/email_service/logic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from asyncio.log import logger
import os
from typing import Iterable
from datetime import timedelta
Expand Down Expand Up @@ -34,9 +33,7 @@ def send_password_reset_email(user: User, new_password: str):
email.attach_alternative(html_message, "text/html")

connection = get_connection(fail_silently=True)
sent = connection.send_messages([email])
if sent != 1:
logger.warning("Password reset email not sent; expected 1, got %s", sent)
connection.send_messages([email])


def send_user_invite_emails(user_invites: Iterable[UserInvite]):
Expand Down
Loading