From 8a3d22776bb97db97bb7afb195522c9b5673e52d Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Fri, 11 Feb 2022 14:40:24 -0700 Subject: [PATCH] Update app/filter.py --- app/filter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/filter.py b/app/filter.py index 3f128aa..5fe5115 100644 --- a/app/filter.py +++ b/app/filter.py @@ -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(',')])