Skip to content

Propagate failures and interruptions from indexed references - #110

Open
Aschenbath wants to merge 1 commit into
purcell:mainfrom
Aschenbath:fix/oss50-bc63-airspeed-index-errors
Open

Aschenbath wants to merge 1 commit into
purcell:mainfrom
Aschenbath:fix/oss50-bc63-airspeed-index-errors

Conversation

@Aschenbath

Copy link
Copy Markdown
Contributor

Indexed references such as $record["name"] currently catch every exception from __getitem__. A failed backend lookup is rendered as an unresolved reference, and even KeyboardInterrupt/SystemExit is swallowed.

Treat only missing keys and out-of-range indexes as absent values. Other lookup errors retain their template context through TemplateExecutionError, while process interruptions propagate normally. Silent references keep the same missing-value behavior.

Validation: the new regressions fail on the unchanged base (7 failing subcases); the full unittest suite passes with the fix (212 tests). Coverage includes ordinary and silent references, original error identity and filename, interruptions, nonindexable values, valid lookups, missing keys, and out-of-range indexes. git diff --check passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant