Fix regression in formation_export

This commit is contained in:
Emmanuel Viennet 2024-09-30 03:21:22 +02:00
parent d5a5c66390
commit ca1ac28f2e

View File

@ -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(