Handle empty deque on errorhandler lookup.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
After registering a custom errorhandler by exception class, raising any unhandled exception in a view function swallows the error and instead throws an `IndexError` on trying to look up the appropriate handler. This patch avoids the uninformative `IndexError` and preserves the original exception by looping until the deque of classes is empty, not forever.
authored by Joshua Carp · committed by Joshua Carp · parent 0d19fa0 · Browse files · 2 files+30 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+30 added−1 removed
- tests:+29 added−0 removed
- other:+1 added−1 removed