Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#894 closed defect (fixed)

[patch] Catch exceptions in response middleware

Reported by: sune.kirkeby@… Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Exceptions thrown in response middlewares are not caught by the normal exception handlers,
because the response-middlewares are applied outside get_response. It would be nice if
the exceptions were caught, and nicely formatted like normal exceptions :)

Attachments (1)

response-middleware-error.patch (1.6 KB ) - added by sune.kirkeby@… 19 years ago.

Download all attachments as: .zip

Change History (3)

by sune.kirkeby@…, 19 years ago

comment:1 by sune.kirkeby@…, 19 years ago

Patch attched; but I am wondering if the response middlewares should be applied just after the
view-function, so exception-middlewares see exceptions from them too?

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [2358]) Fixed #894 -- Moved response middleware call to base.py so that exceptions in that middleware get processed by the standard exception handling. As a nice side effect, this cuts down on a bit of redundant code.

Note: See TracTickets for help on using tickets.
Back to Top