diff --git a/app/but/bulletin_but_xml_compat.py b/app/but/bulletin_but_xml_compat.py index 279f928477..1369eb672b 100644 --- a/app/but/bulletin_but_xml_compat.py +++ b/app/but/bulletin_but_xml_compat.py @@ -182,7 +182,10 @@ def bulletin_but_xml_compat( # Liste ici uniquement les modules rattachés à cette UE if modimpl.module.ue.id == ue.id: # mod_moy = scu.fmt_note(results.etud_moy_ue[ue.id][etud.id]) - coef = results.modimpl_coefs_df[modimpl.id][ue.id] + try: + coef = results.modimpl_coefs_df[modimpl.id][ue.id] + except KeyError: + coef = 0.0 x_mod = Element( "module", id=str(modimpl.id),