forked from DGNum/gestioCOF
Early return if there is no email
This commit is contained in:
parent
ab89002cfc
commit
405f95a43b
1 changed files with 2 additions and 0 deletions
|
@ -453,6 +453,8 @@ def notify_new_member(request, member: User):
|
||||||
"GestioCOF n'a pas d'adresse mail pour {}, ".format(member)
|
"GestioCOF n'a pas d'adresse mail pour {}, ".format(member)
|
||||||
+ "aucun email de bienvenue n'a été envoyé",
|
+ "aucun email de bienvenue n'a été envoyé",
|
||||||
)
|
)
|
||||||
|
return
|
||||||
|
|
||||||
# Try to send a welcome email and report SMTP errors
|
# Try to send a welcome email and report SMTP errors
|
||||||
try:
|
try:
|
||||||
send_custom_mail(
|
send_custom_mail(
|
||||||
|
|
Loading…
Reference in a new issue