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

Catch IntegrityErrors, etc., in all view methods #367

jfinkels opened this Issue Oct 25, 2014 · 0 comments


None yet
1 participant

jfinkels commented Oct 25, 2014

Create a single decorator function that wraps each view method (that is, add a function to the decorators class attribute of the API class) that catches DataError, IntegrityError, and ProgrammingError exceptions, instead of having a separate try/catch block in each method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment