(context: BasicCrawlingContext)
| 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) |