mirror of
https://github.com/ansible/awx.git
synced 2026-04-12 21:49:24 -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)
|
|
|