From c4edff717dc73169a0e06b5f155fae4ee1f4ef04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 15 Mar 2017 18:21:26 +0000 Subject: [PATCH] Disable the fail_silently option for emails It is obviously a bad idea to fail silently if something go wrong when the connection with the mail server is being established. This was enabled in the `_traitement_post` method. --- gestioncof/petits_cours_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestioncof/petits_cours_views.py b/gestioncof/petits_cours_views.py index fa1c5db3..141f8339 100644 --- a/gestioncof/petits_cours_views.py +++ b/gestioncof/petits_cours_views.py @@ -263,7 +263,7 @@ def _traitement_post(request, demande): frommail, [demande.email], [bccaddress], headers={'Reply-To': replyto})) - connection = mail.get_connection(fail_silently=True) + connection = mail.get_connection(fail_silently=False) connection.send_messages(mails_to_send) lock_table(PetitCoursAttributionCounter, PetitCoursAttribution, User) for matiere in proposals: