From 0c3b9a364c5c47dac2b27b77a5b7d3fd12435e90 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 4 Nov 2022 11:41:03 +0100 Subject: [PATCH] Fix: modif semestre avec inscriptions sans parcours --- app/models/formsemestre.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/formsemestre.py b/app/models/formsemestre.py index eabf7f098..ecfc246c1 100644 --- a/app/models/formsemestre.py +++ b/app/models/formsemestre.py @@ -606,7 +606,8 @@ class FormSemestre(db.Model): [ inscr for inscr in self.inscriptions - if inscr.parcour.code == group.group_name + if (inscr.parcour is not None) + and inscr.parcour.code == group.group_name ] ) == 0