From bd6d21d10a03649100db7cccc1440c11ae495111 Mon Sep 17 00:00:00 2001 From: piernov Date: Tue, 19 May 2015 21:16:52 +0200 Subject: [PATCH] Fix if mail is missing --- jm2l/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jm2l/views.py b/jm2l/views.py index 7e6721a..08ee83f 100644 --- a/jm2l/views.py +++ b/jm2l/views.py @@ -952,7 +952,7 @@ def participer(request): # Prepare Message message = Message(subject="[JM2L] Mon inscription au site web JM2L", sender="contact@jm2l.linux-azur.org", - recipients=[NewUser.mail], + recipients=[NewUser.mail or TmpUsr.mail], body=mail_plain, html=mail_html) message.add_bcc("spam@style-python.fr")