Update app/filter.py

This commit is contained in:
Ben Busby 2022-02-11 14:40:24 -07:00 committed by GitHub
parent 3c159822a3
commit 8a3d22776b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,10 +123,7 @@ class Filter:
return soup
def remove_site_blocks(self, soup) -> None:
if not self.config.block:
return
if not soup.body:
if not self.config.block or not soup.body:
return
search_string = ' '.join(['-site:' +
_ for _ in self.config.block.split(',')])