#894 closed defect (fixed)
[patch] Catch exceptions in response middleware
Reported by: | 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)
Change History (3)
by , 19 years ago
Attachment: | response-middleware-error.patch added |
---|
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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?