Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion knowledge_panels/build_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def build_content_from_file(
file_path: the input YAML file path
"""
if flavor not in ("obf", "off", "opf", "opff"):
raise ValueError("Ignoring file %s: unknown flavor %s", file_path, flavor)
raise ValueError(f"Ignoring file {file_path}: unknown flavor {flavor}")


tag_type, country, lang = extract_information_from_file_name(file_path)
if tag_type not in (
Expand Down
Loading