From 5eed392400bf9908a6c6444dc572df1b8f0c4c46 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 10 Jan 2023 09:52:11 -0300 Subject: [PATCH] Fix: bulletin avec UE sans ECTS --- app/scodoc/sco_bulletins_standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_bulletins_standard.py b/app/scodoc/sco_bulletins_standard.py index 2c9c4b818..cd535be01 100644 --- a/app/scodoc/sco_bulletins_standard.py +++ b/app/scodoc/sco_bulletins_standard.py @@ -435,7 +435,7 @@ class BulletinGeneratorStandard(sco_bulletins_generator.BulletinGenerator): plusminus = pluslink try: ects_txt = str(int(ue["ects"])) - except (ValueError, KeyError): + except (ValueError, KeyError, TypeError): ects_txt = "-" t = {