mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24877 -- Added middleware handling of response.render() errors.
This commit is contained in:
committed by
Tim Graham
parent
b91a2a499f
commit
f5d5867a4a
8
tests/middleware_exceptions/middleware.py
Normal file
8
tests/middleware_exceptions/middleware.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.http import HttpResponse
|
||||
|
||||
|
||||
class ProcessExceptionMiddleware(object):
|
||||
def process_exception(self, request, exception):
|
||||
return HttpResponse('Exception caught')
|
||||
Reference in New Issue
Block a user