Fixed #24877 -- Added middleware handling of response.render() errors.

This commit is contained in:
Sylvain Fankhauser 2015-06-05 15:30:03 +02:00 committed by Tim Graham
parent b91a2a499f
commit f5d5867a4a
6 changed files with 47 additions and 10 deletions

View 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')