Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ignore handled exception when popping the context#1393

Merged
untitaker merged 2 commits intopallets:masterfrom
mjpieters:appcontext_ignore_handled_exception
Mar 23, 2015
Merged

Ignore handled exception when popping the context#1393
untitaker merged 2 commits intopallets:masterfrom
mjpieters:appcontext_ignore_handled_exception

Conversation

@mjpieters
Copy link
Contributor

This is a fix for#1392; the app and request contexts should not report an exception when tearing down after an exception has already been handled in awith statement.

…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.
@untitakeruntitaker merged commitecaaa50 intopallets:masterMar 23, 2015
untitaker added a commit that referenced this pull requestMar 23, 2015
@untitaker
Copy link
Contributor

Excellent, thanks!

andyxning pushed a commit to andyxning/flask that referenced this pull requestApr 19, 2015
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsNov 14, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mjpieters@untitaker

Comments


[8]ページ先頭

©2009-2026 Movatter.jp