mirror of https://github.com/mitsuhiko/flask.git
Browse Source
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.pull/1480/head
Joshua Carp
10 years ago
2 changed files with 30 additions and 1 deletions
Loading…
Reference in new issue