Fix error with remove_site_blocks
in the Images tab
This commit is contained in:
parent
c6c9965335
commit
6ccb5f537c
|
@ -125,6 +125,9 @@ class Filter:
|
|||
def remove_site_blocks(self, soup) -> None:
|
||||
if not self.config.block:
|
||||
return
|
||||
|
||||
if not soup.body:
|
||||
return
|
||||
search_string = ' '.join(['-site:' +
|
||||
_ for _ in self.config.block.split(',')])
|
||||
selected = soup.body.findAll(text=re.compile(search_string))
|
||||
|
|
Loading…
Reference in New Issue
Block a user