Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FlaskApp exception handlers #1788

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Fix FlaskApp exception handlers #1788

merged 2 commits into from
Nov 6, 2023

Conversation

RobbeSneyders
Copy link
Member

Fixes #1787

In the FlaskApp, the error handlers were still registered on the underlying Flask app instead of on the ExceptionMiddleware, which led to them not following the documented behavior.

The documentation was also incorrect about ignoring error handlers registered on the flask application. We are only ignoring the default error handlers registered by Flask itself.

This is a breaking change, however, since this functionality was not following the documented behavior, and 3.0.0 was only recently released, I propose to release this as a patch version.

@coveralls
Copy link

coveralls commented Nov 5, 2023

Coverage Status

coverage: 94.271% (+0.03%) from 94.237%
when pulling c14d127 on bugfix/exceptions
into bcf4c63 on main.

@RobbeSneyders RobbeSneyders merged commit 70084bc into main Nov 6, 2023
5 of 6 checks passed
@RobbeSneyders RobbeSneyders deleted the bugfix/exceptions branch November 6, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error handling isn't correctly typed/documented
2 participants