Skip to content

Conversation

@miguelgrinberg
Copy link
Contributor

Fixes #1674.

By having Werkzeug always configured to let exceptions through we achieve the correct behavior for Flask. If Flask is configured to propagate exceptions (implicitly or explicitly, doesn't matter), then Werkzeug will get these exceptions and pass them through as well. If Flask is configured to not propagate exceptions, then Werkzeug will never see them, so no harm done if it is configured to pass them.

It looks like there is no testing for the new cli, so I have only added a test for the app.run() way of starting a server.

This comment was marked as off-topic.

This comment was marked as off-topic.

@davidism davidism self-assigned this Jan 25, 2016
davidism added a commit that referenced this pull request Jan 26, 2016
Werkzeug should not block propagated exceptions from Flask
@davidism davidism merged commit 7b1ebfb into pallets:master Jan 26, 2016
@davidism
Copy link
Member

I don't know why I never noticed that PyCharm wasn't breaking on exceptions, but it works as expected and as described in the docs now. Thanks for fixing this.

davidism added a commit that referenced this pull request Jun 23, 2016
This got dropped during the cli simplification.  Re: #1679
davidism added a commit that referenced this pull request Jun 23, 2016
This got dropped during the cli simplification.  Re: #1679
untitaker added a commit to untitaker/flask that referenced this pull request Sep 6, 2016
untitaker added a commit to untitaker/flask that referenced this pull request Sep 6, 2016
untitaker added a commit that referenced this pull request Sep 6, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When using an external debugger, exceptions are not properly propagated

3 participants