From ca1ac28f2ea8e9f959f50cbc6aabb1dfc0fbe895 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 30 Sep 2024 03:21:22 +0200 Subject: [PATCH] Fix regression in formation_export --- app/scodoc/sco_formations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_formations.py b/app/scodoc/sco_formations.py index 645606ea..2fc63a34 100644 --- a/app/scodoc/sco_formations.py +++ b/app/scodoc/sco_formations.py @@ -222,7 +222,7 @@ def formation_export( """Get a formation, with UE, matieres, modules in desired format """ - if fmt not in ("xml", "json"): + if fmt not in (None, "xml", "json"): raise ScoValueError("Format invalide") formation = Formation.get_formation(formation_id) f_dict = formation_export_dict(