mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
Fix exception format in project_update_stdout.
Signed-off-by: Yunfan Zhang <yz322@duke.edu>
This commit is contained in:
@@ -104,6 +104,8 @@ def api_exception_handler(exc, context):
|
|||||||
exc = ParseError(exc.args[0])
|
exc = ParseError(exc.args[0])
|
||||||
if isinstance(exc, FieldError):
|
if isinstance(exc, FieldError):
|
||||||
exc = ParseError(exc.args[0])
|
exc = ParseError(exc.args[0])
|
||||||
|
if isinstance(context['view'], UnifiedJobStdout):
|
||||||
|
context['view'].renderer_classes = [BrowsableAPIRenderer, renderers.JSONRenderer]
|
||||||
return exception_handler(exc, context)
|
return exception_handler(exc, context)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user