-
Notifications
You must be signed in to change notification settings - Fork 888
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
request.invoke exception view #2393
Conversation
c3076fc
to
bc09250
Compare
Much excitement =) 👍 from me. I just gave it a cursory glance though. |
Hey @tseaver I'm about to merge this, do you have any final objections? |
I guess I'm -0 on checking anything in that leaves the traceback-local binding around until GC kicks in. Not enough to block it (and we may be doing it elsewhere), but it still makes me uncomfortable. |
AFAICT based on #2393 (comment) there should be no need for GC here as there are no circular refs. The only possible issue in this api is if a user themselves calls |
request.invoke exception view
Introduce a new API for invoking exception views manually. This can be done for several reasons but the primary use-case is for error handling inside of tweens where it is desirable to utilize the registered exception views of the pyramid app to render errors instead of defining some other hook for rendering the error as is required when using wsgi middleware.