From 5e65e75a3b641c1d7ee6585d75d791f0b9f0e650 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 17 Dec 2021 23:05:59 +0100 Subject: [PATCH] =?UTF-8?q?tolere=20module=5Ftype=20NULL=20(bug=20Orl?= =?UTF-8?q?=C3=A9ans/Chimie=20=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_formsemestre_status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index bff2283c7..290b03403 100644 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -1210,6 +1210,7 @@ def formsemestre_tableau_modules( ) if mod.module_type in ( + None, # ne devrait pas être nécessaire car la migration a remplacé les NULLs ModuleType.STANDARD, ModuleType.RESSOURCE, ModuleType.SAE, @@ -1249,7 +1250,7 @@ def formsemestre_tableau_modules( % (modimpl["moduleimpl_id"], nb_malus_notes) ) else: - raise ValueError("Invalid module_type") # a bug + raise ValueError(f"Invalid module_type {mod.module_type}") # a bug H.append("") return "\n".join(H)