diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 05519e09..23ed46db 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -598,7 +598,7 @@ def set_droits(adher): # MLs pour lesquelles un autre droit abonne encore for droit in new: - for ml in [m for m in old_mls if droit in droits_mls[m]]: + for ml in [m for m in old_mls if droit in droits_mls.get(m, [])]: old_mls.pop(ml) # Choix des MLs auxquelles débonner