From feb799cc20a37e3dab595b567fc96931c69c04f6 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 1 Jun 2023 19:04:02 +0200 Subject: [PATCH] Fix #655 (affichage ScoValueError) --- app/scodoc/sco_formsemestre_inscriptions.py | 2 +- app/templates/sco_value_error.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_formsemestre_inscriptions.py b/app/scodoc/sco_formsemestre_inscriptions.py index c12fa73a8..f59eaa1e2 100644 --- a/app/scodoc/sco_formsemestre_inscriptions.py +++ b/app/scodoc/sco_formsemestre_inscriptions.py @@ -210,7 +210,7 @@ def do_formsemestre_desinscription(etudid, formsemestre_id): if nt.etud_has_decision(etudid): raise ScoValueError( - """désinscription impossible: l'étudiant {etud.nomprenom} a + f"""désinscription impossible: l'étudiant {etud.nomprenom} a une décision de jury (la supprimer avant si nécessaire)""" ) diff --git a/app/templates/sco_value_error.j2 b/app/templates/sco_value_error.j2 index 840d38023..94b603101 100644 --- a/app/templates/sco_value_error.j2 +++ b/app/templates/sco_value_error.j2 @@ -5,7 +5,7 @@

Erreur !

-{{ exc }} +{{ exc | safe }}

{% if g.scodoc_dept %}