mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 08:27:29 -02:30
9 lines
245 B
Python
9 lines
245 B
Python
import traceback
|
|
from django.http import HttpResponse
|
|
|
|
class ExceptionMiddleware(object):
|
|
|
|
def process_exception(self, request, exception):
|
|
return HttpResponse(traceback.format_exc(exception), content_type="text/plain", status=500)
|
|
|