Commit 40107af2 authored by Alexandre Bulté's avatar Alexandre Bulté
Browse files

Do not break if format is not in `FORMAT_MAP`

Avoid errors on data such as:
            "name": "date_maj",
            "description": "Date de mise à jour des données",
            "examples": "2018/08/08, 2015/12/30",
            "required": true,
            "type": "date",
            "format": "%Y/%m/%d"
parent 9670a302
Pipeline #13 failed with stages
......@@ -90,7 +90,7 @@ def format_description(description):
def format_format(format_val):
""" Return markdown format information """
return "- `{}` {}\n".format(format_val, FORMAT_MAP[format_val])
return "- `{}` {}\n".format(format_val, FORMAT_MAP.get(format_val, ''))
def format_type_specific_info(col_content):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment