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

render exception views for errors caused by commit/abort #61

Merged
merged 4 commits into from
Jun 7, 2017

Conversation

mmerickel
Copy link
Member

The biggest issue with moving pyramid_tm OVER the exception view tween was that errors caused by commit/abort were no longer caught and handled. This PR fixes that issue by wrapping commit/abort operations and using request.invoke_exception_view to turn those errors into responses. It is careful not to catch any other errors and allows them to propagate after successful abort.

This feature only works on Pyramid >= 1.7 where request.invoke_exception_view was added.

@pvalsecc
Copy link

pvalsecc commented Jun 7, 2017

This PR solves #62

@digitalresistor
Copy link
Member

👍

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.

3 participants