mirror of
https://github.com/unclecode/crawl4ai.git
synced 2026-06-11 08:18:01 +00:00
fix: resolve AttributeError in FilterChain.add_filter by handling tuple immutability
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user