Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

test: let the clamp-failure stub accept filter_chain after the merge

ntohididdb6ac194c3c
diff --git a/deploy/docker/tests/test_security_hardening_2026_10.py b/deploy/docker/tests/test_security_hardening_2026_10.py
index 9e7aed6c..1ba738fa 100644
--- a/deploy/docker/tests/test_security_hardening_2026_10.py
+++ b/deploy/docker/tests/test_security_hardening_2026_10.py
@@ -53,7 +53,9 @@ class _RaisingDeepCrawl:
max_depth = None
def __setattr__(self, name, value):
- raise RuntimeError("cannot set attribute")
+ if name in ("max_pages", "max_depth"):
+ raise RuntimeError("cannot set attribute")
+ object.__setattr__(self, name, value)
class _RaisingConfig: