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:
|
def remove_site_blocks(self, soup) -> None:
|
||||||
if not self.config.block:
|
if not self.config.block:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not soup.body:
|
||||||
|
return
|
||||||
search_string = ' '.join(['-site:' +
|
search_string = ' '.join(['-site:' +
|
||||||
_ for _ in self.config.block.split(',')])
|
_ for _ in self.config.block.split(',')])
|
||||||
selected = soup.body.findAll(text=re.compile(search_string))
|
selected = soup.body.findAll(text=re.compile(search_string))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user