mirror of
https://github.com/django/django.git
synced 2025-07-19 03:05:32 +00:00
Fixed #24877 -- Added middleware handling of response.render() errors.
This commit is contained in:
parent
b91a2a499f
commit
f5d5867a4a
6 changed files with 47 additions and 10 deletions
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')
|
Loading…
Add table
Add a link
Reference in a new issue