Added another None test to be sure

This commit is contained in:
Toorero 2021-10-27 01:51:34 +02:00
parent ac35dd9a47
commit be6214722b

View file

@ -93,7 +93,8 @@ class KitIpdCrawler(HttpCrawler):
if (enclosing_table) is None: if (enclosing_table) is None:
continue continue
label: Tag = enclosing_table.findPreviousSibling(name=re.compile('^h[1-6]$')) label: Tag = enclosing_table.findPreviousSibling(name=re.compile('^h[1-6]$'))
folder_tags.add(label) if label is not None:
folder_tags.add(label)
print(folder_tags) print(folder_tags)
return folder_tags return folder_tags