mirror of https://github.com/mitsuhiko/flask.git
Browse Source
When an exception has been handled when using the request / app context in a with statement, `sys.exc_info()` will still contain the exception information even though it has been handled already. The `__exit__` methods pass in `None` for the exception value in that case, which needs to be distinguisable from the default value for the `exc` parameter. Use a dedicated singleton sentinel value instead.pull/1393/head
4 changed files with 45 additions and 8 deletions
Loading…
Reference in new issue