mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03: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)
|
|
|