Files
archon/python
leex279 ec6d8f7664 Add validation for crawler config environment variables
Validates numeric environment variables with proper error handling:
- ROBOTS_DEFAULT_CRAWL_DELAY: Must be valid float >= 0.0
- ROBOTS_CACHE_SIZE: Must be valid int >= 1
- ROBOTS_CACHE_TTL: Must be valid int >= 1

Raises ConfigurationError with clear messages including:
- The env var name
- The invalid value
- The required range/constraints

Returns type-safe dict (float for delay, int for sizes/TTLs).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 14:23:38 +01:00
..