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 af7d705 commit a42df23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trafilatura/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def copy_attributes(dest_elem: _Element, src_elem: _Element) -> None:
dest_elem.set(key, src_elem.attrib[key])


def is_in_table_cell(elem: _Element) -> bool:
def is_in_table_cell(elem: Optional[_Element]) -> bool:
'''Check whether an element is in a table cell'''
while elem is not None:
if elem.tag == 'cell':
Expand Down

0 comments on commit a42df23

Please sign in to comment.