From 6ae433aa6106cff9ffa5cb4615ac08703903d0c7 Mon Sep 17 00:00:00 2001
From: Emmanuel Viennet <emmanuel.viennet@gmail.com>
Date: Wed, 10 Jul 2024 01:00:51 +0200
Subject: [PATCH] Fix: bul. BUT court sur etudiants DEM

---
 app/but/bulletin_but_court_pdf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/but/bulletin_but_court_pdf.py b/app/but/bulletin_but_court_pdf.py
index 041feef1..641ac9c4 100644
--- a/app/but/bulletin_but_court_pdf.py
+++ b/app/but/bulletin_but_court_pdf.py
@@ -538,7 +538,7 @@ class BulletinGeneratorBUTCourt(BulletinGeneratorStandard):
             }, année BUT{self.bul["semestre"]["decision_annee"]["ordre"]}
             <b>{self.bul["semestre"]["decision_annee"]["code"]}</b>.
             <br/>
-            {self.bul["diplomation"]}
+            {self.bul.get("diplomation", "")}
             """
         if self.diplome_dut120_descr:
             txt += f"""<br/>{self.diplome_dut120_descr}."""
-- 
GitLab