2015-06-05 21:30:03 +08:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.http import HttpResponse
|
2015-11-07 23:12:37 +08:00
|
|
|
from django.utils.deprecation import MiddlewareMixin
|
2015-06-05 21:30:03 +08:00
|
|
|
|
|
|
|
|
2015-11-07 23:12:37 +08:00
|
|
|
class ProcessExceptionMiddleware(MiddlewareMixin):
|
|
|
|
|
2015-06-05 21:30:03 +08:00
|
|
|
def process_exception(self, request, exception):
|
|
|
|
return HttpResponse('Exception caught')
|