From cfa73084eae8345dc222d2704fb38620bfc98d26 Mon Sep 17 00:00:00 2001 From: nitesh-77 Date: Mon, 16 Feb 2026 05:41:22 +0530 Subject: [PATCH] fix: resolve AttributeError in FilterChain.add_filter by handling tuple immutability --- crawl4ai/deep_crawling/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl4ai/deep_crawling/filters.py b/crawl4ai/deep_crawling/filters.py index c075cb7d..2865767f 100644 --- a/crawl4ai/deep_crawling/filters.py +++ b/crawl4ai/deep_crawling/filters.py @@ -85,7 +85,7 @@ class FilterChain: def add_filter(self, filter_: URLFilter) -> "FilterChain": """Add a filter to the chain""" - self.filters.append(filter_) + self.filters = self.filters + (filter_,) return self # Enable method chaining async def apply(self, url: str) -> bool: