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

Propagate flask_rest_jsonapi errors to flask #163

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

JortdeBokx
Copy link
Contributor

When the ROPAGATE_EXCEPTIONS is set, it is desirable to re-throw the error such that any registered flask error handlers will take care of it.
This fixes the error described in issue #162.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.772% when pulling 68d0faa on JortdeBokx:master into b44bc08 on miLibris:master.

@coveralls
Copy link

coveralls commented Jun 20, 2019

Coverage Status

Coverage remained the same at 90.772% when pulling 1421fee on JortdeBokx:master into b44bc08 on miLibris:master.

@nikhaldi
Copy link

I support this change. It gives users the option to fully customize the error handling. Not all users will be happy with the particular error handling that is enforced otherwise.

Use get function to prevent KeyError when PROPAGATE_EXCEPTIONS is not set

Co-Authored-By: Areeb Jamal <jamal.areeb@gmail.com>
@akira-dev akira-dev merged commit 1fda952 into miLibris:master Sep 29, 2020
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.

None yet

5 participants