Ratatoskr/scripts/ridge-bake/refusal.py
Meta Vens cb751c203a ridge-bake: the baker's own Refusal(ValueError), raised at every refusal site; the fixtures catch it only
A numpy ValueError reaching a fixture that read `except ValueError as e: assert text in str(e)` is now a crash (mutate.py: CRASHED), not a kill. refusal.py is the one definition both ridge.py and export.py import (export's pure parts import no baker, ridge needs the env at import).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 00:26:18 +01:00

2 lines
283 B
Python

"""The baker's refusal: raised wherever ridge.py or export.py declines a preset, a view or a bake. The fixtures catch this class only, so an exception from numpy or the standard library reaching them is a crash (mutate.py: CRASHED), never a kill."""
class Refusal(ValueError): pass