formsemestre_validation_but: message erreur si étudiant non inscrit

This commit is contained in:
Emmanuel Viennet 2024-07-12 17:23:06 +02:00
parent 72fe741f62
commit 2224500209

View File

@ -265,8 +265,10 @@ def formsemestre_validation_but(
"""<div class="jury_but">
""",
]
if formsemestre.etuds_inscriptions[etudid].etat != scu.INSCRIT:
inscription = formsemestre.etuds_inscriptions.get(etudid)
if not inscription:
raise ScoValueError("étudiant non inscrit au semestre")
if inscription.etat != scu.INSCRIT:
return (
"\n".join(H)
+ f"""