From 41a791282a6f91222b6c77118bc1091960a03f26 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 6 Jul 2023 16:24:52 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20jury=20formation=20classique=20en=20cas?= =?UTF-8?q?=20de=20d=C3=A9faillance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/comp/res_common.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/comp/res_common.py b/app/comp/res_common.py index e59172170..54fd0de03 100644 --- a/app/comp/res_common.py +++ b/app/comp/res_common.py @@ -381,7 +381,11 @@ class ResultatsSemestre(ResultatsCache): was_capitalized = False if etudid in self.validations.ue_capitalisees.index: ue_cap = self._get_etud_ue_cap(etudid, ue) - if ue_cap and not np.isnan(ue_cap["moy_ue"]): + if ( + ue_cap + and (ue_cap["moy_ue"] is not None) + and not np.isnan(ue_cap["moy_ue"]) + ): was_capitalized = True if ue_cap["moy_ue"] > cur_moy_ue or np.isnan(cur_moy_ue): moy_ue = ue_cap["moy_ue"]