diff --git a/app/filter.py b/app/filter.py index 66cced7..5fe5115 100644 --- a/app/filter.py +++ b/app/filter.py @@ -123,7 +123,7 @@ class Filter: return soup def remove_site_blocks(self, soup) -> None: - if not self.config.block: + if not self.config.block or not soup.body: return search_string = ' '.join(['-site:' + _ for _ in self.config.block.split(',')])