forked from ScoDoc/ScoDoc
Fix: retreive_formsemestre_from_request / sans semestre
This commit is contained in:
parent
2ad77428a5
commit
74b8b90a65
@ -88,8 +88,10 @@ def retreive_formsemestre_from_request() -> int:
|
||||
|
||||
if formsemestre_id is None:
|
||||
return None # no current formsemestre
|
||||
|
||||
return int(formsemestre_id)
|
||||
try:
|
||||
return int(formsemestre_id)
|
||||
except ValueError:
|
||||
return None # no current formsemestre
|
||||
|
||||
|
||||
def sidebar_common():
|
||||
|
Loading…
Reference in New Issue
Block a user