Probably there's a missing try/except in
https://github.com/django/django/blob/master/django/core/handlers/base.py#L176,
like the one in #L145.
--
Ticket URL: <https://code.djangoproject.com/ticket/24877>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
As timograham said in the IRC, the docs say `process_exception()` will be
called if the view raises an exception, so it seems a bit ambiguous if
that includes deferred template rendering or not.
As the response object could be a response object of any type (just with a
render method), it'd be a nice enhancement if it also checked for
exceptions being thrown there to be handled by the middlewares.
--
Ticket URL: <https://code.djangoproject.com/ticket/24877#comment:1>
* component: Uncategorized => HTTP handling
* version: 1.8 => master
* type: Uncategorized => New feature
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24877#comment:2>
* status: new => assigned
* owner: nobody => sephii
--
Ticket URL: <https://code.djangoproject.com/ticket/24877#comment:3>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/4805 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/24877#comment:4>
* needs_better_patch: 0 => 1
Comment:
Comments for improvement on the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/24877#comment:5>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24877#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f5d5867a4a6aeddd58ff855a01ab4e438d938ac1" f5d5867a]:
{{{
#!CommitTicketReference repository=""
revision="f5d5867a4a6aeddd58ff855a01ab4e438d938ac1"
Fixed #24877 -- Added middleware handling of response.render() errors.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24877#comment:7>