From e745a7938eeefc0ff283671dc41bc5d6d1118da1 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 12 Mar 2023 18:57:35 +0100 Subject: [PATCH] Fix bonus Sceaux (cas particulier sans bonus) --- app/comp/bonus_spo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/comp/bonus_spo.py b/app/comp/bonus_spo.py index 520445372..45c0cbb8b 100644 --- a/app/comp/bonus_spo.py +++ b/app/comp/bonus_spo.py @@ -1276,7 +1276,8 @@ class BonusSceaux(BonusSportAdditif): # atypique # pas d'étudiants ou pas d'UE ou pas de module... return super().compute_bonus(sem_modimpl_moys_inscrits, modimpl_coefs_etuds_no_nan) - self.bonus_ues = (self.bonus_ues / self.nb_ues) / self.sum_coefs_ues + if self.bonus_ues is not None: + self.bonus_ues = (self.bonus_ues / self.nb_ues) / self.sum_coefs_ues class BonusStEtienne(BonusSportAdditif):