Skip to content

Commit

Permalink
This operator does not exist in Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhainin committed Apr 5, 2024
1 parent 791c55e commit 954897d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trafilatura/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ def handle_table(table_elem, potential_tags, options):
processed_subchild = handle_textnode(child, options, preserve_spaces=True, comments_fix=True)
# todo: lists in table cells
elif child.tag == "list":
if (processed_subchild := handle_lists(child, options)) is not None:
processed_subchild = handle_lists(child, options)
if processed_subchild is not None:
newchildelem.append(processed_subchild)
processed_subchild = None # don't handle it anymore
else:
Expand Down

0 comments on commit 954897d

Please sign in to comment.