formsemestre_bulletinetud: 404 if invalid formsemestre_id
This commit is contained in:
parent
a40cea67f0
commit
04bda84228
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user