mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-15 01:08:37 -05:00
Rename ansibleworks to awx.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Copyright (c) 2013 AnsibleWorks, Inc.
|
||||
# All Rights Reserved.
|
||||
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2013 AnsibleWorks, Inc.
|
||||
# All Rights Reserved.
|
||||
|
||||
import traceback
|
||||
from django.http import HttpResponse
|
||||
|
||||
class ExceptionMiddleware(object):
|
||||
|
||||
def process_exception(self, request, exception):
|
||||
if request.path.startswith('/api/'):
|
||||
# FIXME: For GA, we shouldn't provide this level of detail to the
|
||||
# end user.
|
||||
return HttpResponse(traceback.format_exc(exception), content_type="text/plain", status=500)
|
||||
Reference in New Issue
Block a user