Skip to content
Snippets Groups Projects
Commit 52dfa16a authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix exception si module sans matiere

parent f74713ac
No related branches found
No related tags found
No related merge requests found
......@@ -321,7 +321,7 @@ def module_edit(
matieres = [
mat
for mat in matieres
if ((module is not None) and (module.matiere.id == mat.id))
if (module and module.matiere and (module.matiere.id == mat.id))
or (mat.id == mat.ue.matieres.first().id)
]
mat_names = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment