﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16367	Exceptions thrown by middleware.process_response don't get to middleware.process_exception	bob84123	Aymeric Augustin	"If I have a custom exception handler, implemented as a middleware class with a process_exception method, this handler does not receive an exception that is thrown during another middleware's process_response method.  This mainly happens with django.middleware.transaction.TransactionMiddleware; if a view executes a query that violates a PostgreSQL constraint, an exception isn't thrown until the transaction is committed, which is inside the middleware, and so my exception logger can't catch that.

I have a patch that fixes the issue and doesn't break anything else (according to the test suite).  I can't see any downsides of applying this, but I may be missing something, so let me know."	New feature	closed	Core (Other)	1.3	Normal	wontfix			Design decision needed	1	1	1	0	0	0
