We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mypy
1 parent df49b3b commit adb4ad5Copy full SHA for adb4ad5
src/hash_http_content/hasher.py
@@ -140,7 +140,7 @@ def _is_visible_element(self, element: PageElement) -> bool:
140
if isinstance(element, Comment):
141
logging.debug("Skipping Comment tag")
142
return False
143
- if element.parent.name in discard_tags:
+ if element.parent is not None and element.parent.name in discard_tags:
144
logging.debug("Skipping element in parent tag '%s'", element.parent.name)
145
146
return True
0 commit comments