Skip to content

Commit 43a45a5

Browse files
authored
Merge branch 'main' into dependabot/pip/exceptiongroup-1.1.1
2 parents c813436 + 4df835a commit 43a45a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scraper/src/strategies/abstract_strategy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ def get_dom(response):
3939
try:
4040
body = response.body.decode(response.encoding)
4141
result = lxml.html.fromstring(body)
42-
except (UnicodeError, ValueError):
42+
except (UnicodeError, ValueError, lxml.etree.ParserError):
4343
result = lxml.html.fromstring(response.body)
44-
4544
return result
4645

4746
def get_strip_chars(self, level, selectors):

0 commit comments

Comments
 (0)