mjpieters · GitHub

Conversation

…earing down a context.
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.

@untitaker

untitaker added a commit that referenced this pull request

Mar 23, 2015

Closed

andyxning pushed a commit to andyxning/flask that referenced this pull request

Apr 19, 2015

Closed

Closed

Closed

Closed

Closed

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators

Nov 14, 2020

Labels

None yet

Read the original on github.com ↗