Skip to content

Commit

Permalink
Fixing FocusSpider.process method
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Jul 5, 2024
1 parent 1d686a4 commit fce66cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minet/crawl/focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def process(self, job: CrawlJob, response: Response):
if not response.is_text:
return FocusCrawlInfo(invalidity="binary"), None
if not html:
return FocusCrawlInfo(invalidity="empty")
return FocusCrawlInfo(invalidity="empty"), None

html = response.text()
soup = response.soup(ignore_xhtml_warning=True)
Expand Down

0 comments on commit fce66cd

Please sign in to comment.