Update app/filter.py
This commit is contained in:
parent
3c159822a3
commit
8a3d22776b
|
@ -123,10 +123,7 @@ class Filter:
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
def remove_site_blocks(self, soup) -> None:
|
def remove_site_blocks(self, soup) -> None:
|
||||||
if not self.config.block:
|
if not self.config.block or not soup.body:
|
||||||
return
|
|
||||||
|
|
||||||
if not soup.body:
|
|
||||||
return
|
return
|
||||||
search_string = ' '.join(['-site:' +
|
search_string = ' '.join(['-site:' +
|
||||||
_ for _ in self.config.block.split(',')])
|
_ for _ in self.config.block.split(',')])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user