diff --git a/app/but/bulletin_but_pdf.py b/app/but/bulletin_but_pdf.py index 0aa22fcf..0d5b6b2d 100644 --- a/app/but/bulletin_but_pdf.py +++ b/app/but/bulletin_but_pdf.py @@ -189,7 +189,9 @@ class BulletinGeneratorStandardBUT(BulletinGeneratorStandard): moy_ue = moy_ue.get("value", "-") if moy_ue is not None else "-" t = { "titre": f"{ue_acronym} - {ue['titre']}", - "moyenne": Paragraph(f"""{moy_ue}"""), + "moyenne": Paragraph( + f"""{moy_ue or "-"}""" + ), "_css_row_class": "note_bold", "_pdf_row_markup": ["b"], "_pdf_style": [