All docs
RunResult·
method
RunResult.raise_on_error
re-raises the captured exception if the run failed
Python
raise_on_error() -> RunResult
Returns RunResult — self when the run succeeded
Example#
Python
Engine().run(pipeline).raise_on_error() # the one-liner for tests
Notes#
Raises the run's captured exception when ok is False; otherwise returns
self so it chains — Engine().run(p).raise_on_error().output. This is the canonical assertion
for tests and scripts that must fail loudly.
See also#
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown