Skip to content

Commit

Permalink
Fix assert exception in de edition page "linnad"
Browse files Browse the repository at this point in the history
The POS title in that page should use level 3 node.
  • Loading branch information
xxyzz committed Mar 27, 2024
1 parent 3a14dec commit 640f496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wiktextract/extractor/de/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def parse_section(
# Level 4 headings were introduced by overriding the default templates.
# See overrides/de.json for details.
elif level_node.kind == NodeKind.LEVEL4:
section_name = level_node.largs[0][0]
section_name = clean_node(wxr, None, level_node.largs)
wxr.wtp.start_subsection(section_name)
if not len(page_data) > 0:
wxr.wtp.debug(
Expand Down

0 comments on commit 640f496

Please sign in to comment.