Skip to content

Commit

Permalink
Fix "argument of type 'NoneType' is not iterable" error in de page "B…
Browse files Browse the repository at this point in the history
…auerngabel"

This is a chess board table and it doesn't have `class` attribute.

Since this `if` branch is not implemented, I'll omit the test for this
error.
  • Loading branch information
xxyzz committed Feb 26, 2024
1 parent ff2ca12 commit 670911e
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 @@ -224,7 +224,7 @@ def process_pos_section(
elif (
isinstance(non_l4_node, WikiNode)
and non_l4_node.kind == NodeKind.TABLE
and "inflection-table" in non_l4_node.attrs.get("class")
and "inflection-table" in non_l4_node.attrs.get("class", "")
):
# XXX: de: Extract html form table
pass
Expand Down

0 comments on commit 670911e

Please sign in to comment.