Skip to content

Commit f14ae6d

Browse files
authored
Merge branch 'main' into dependabot/pip/tox-4.4.7
2 parents 4acc55d + 2b49032 commit f14ae6d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)