#24877: Exceptions in renderizable responses are not handled by Middleware's
`process_exception()`
-------------------------------+--------------------------------------
     Reporter:  Kronuz         |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Kronuz):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.ed45a58e3e3aef8399a0bb6eb5999d33%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to