MCPcopy Create free account
hub / github.com/apify/crawlee-python / request_handler

Function request_handler

tests/unit/crawlers/_basic/test_basic_crawler.py:329–330  ·  view source on GitHub ↗
(context: BasicCrawlingContext)

Source from the content-addressed store, hash-verified

327 # Request handler with injected error
328 @crawler.router.default_handler
329 async def request_handler(context: BasicCrawlingContext) -> None:
330 raise RuntimeError('Arbitrary crash for testing purposes')
331
332 # Apply one of the handlers
333 @getattr(crawler, handler)

Callers

nothing calls this directly

Calls 1

use_stateMethod · 0.80

Tested by

no test coverage detected