Early return if there is no email

This commit is contained in:
Basile Clement 2019-06-17 21:21:30 +02:00 committed by Ludovic Stephan
parent ab89002cfc
commit 405f95a43b

View file

@ -453,6 +453,8 @@ def notify_new_member(request, member: User):
"GestioCOF n'a pas d'adresse mail pour {}, ".format(member)
+ "aucun email de bienvenue n'a été envoyé",
)
return
# Try to send a welcome email and report SMTP errors
try:
send_custom_mail(