Skip to content

Commit

Permalink
fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyInnowhere authored and CodyInnowhere committed Dec 13, 2024
1 parent c510ac5 commit 2731eb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trafilatura/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,5 +467,8 @@ def is_in_table_cell(elem: _Element) -> bool:
while elem is not None:
if elem.tag == 'cell':
return True
elem = elem.getparent()
parent = elem.getparent()
if parent is None:
break
elem = parent
return False

0 comments on commit 2731eb7

Please sign in to comment.