From c9f6521a613a694ac434b56da6eb234241b9d171 Mon Sep 17 00:00:00 2001 From: B Tasker Date: Sun, 18 Aug 2024 17:03:20 +0100 Subject: [PATCH] fix: strip whitespace if it's included in the list --- find_posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_posts.py b/find_posts.py index a303903..29339d6 100644 --- a/find_posts.py +++ b/find_posts.py @@ -1578,7 +1578,7 @@ if __name__ == "__main__": SEEN_HOSTS_FILE = os.path.join(arguments.state_dir, "seen_hosts") RECENTLY_CHECKED_CONTEXTS_FILE = os.path.join(arguments.state_dir, 'recent_context') - INSTANCE_BLOCKLIST = arguments.instance_blocklist.split(",") + INSTANCE_BLOCKLIST = [x.strip() for x in arguments.instance_blocklist.split(",")] ROBOTS_TXT = {} seen_urls = OrderedSet([])