Fix: retreive_formsemestre_from_request / sans semestre

This commit is contained in:
Emmanuel Viennet 2024-01-22 15:50:01 +01:00
parent 2ad77428a5
commit 74b8b90a65

View File

@ -88,8 +88,10 @@ def retreive_formsemestre_from_request() -> int:
if formsemestre_id is None: if formsemestre_id is None:
return None # no current formsemestre return None # no current formsemestre
try:
return int(formsemestre_id) return int(formsemestre_id)
except ValueError:
return None # no current formsemestre
def sidebar_common(): def sidebar_common():