Skip to content

Commit

Permalink
Fix index out of range error in French Wiktionary page "و ل د"
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Dec 12, 2023
1 parent 949de93 commit 083bca4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wiktextract/extractor/fr/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ def parse_section(
):
pass
elif section_type in wxr.config.OTHER_SUBTITLES["notes"]:
if len(page_data) == 0:
page_data.append(copy.deepcopy(base_data))
extract_note(wxr, page_data, level_node)
if page_data[-1].keys() == base_data.keys():
page_data.pop() # no data was added


def process_pos_block(
Expand Down

0 comments on commit 083bca4

Please sign in to comment.