1
0
forked from ScoDoc/ScoDoc

formsemestre_bulletinetud: 404 if invalid formsemestre_id

This commit is contained in:
Emmanuel Viennet 2022-05-10 18:09:42 +02:00
parent a40cea67f0
commit 04bda84228

View File

@ -292,7 +292,7 @@ def formsemestre_bulletinetud(
format = format or "html"
if not isinstance(formsemestre_id, int):
raise ValueError("formsemestre_id must be an integer !")
abort(404)
formsemestre = FormSemestre.query.get_or_404(formsemestre_id)
if etudid:
etud = models.Identite.query.get_or_404(etudid)