mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 21:51:26 -03:30
Fix exception format in project_update_stdout.
Signed-off-by: Yunfan Zhang <yz322@duke.edu>
This commit is contained in:
parent
1255cfc2f0
commit
1a3ab7d487
@ -104,6 +104,8 @@ def api_exception_handler(exc, context):
|
||||
exc = ParseError(exc.args[0])
|
||||
if isinstance(exc, FieldError):
|
||||
exc = ParseError(exc.args[0])
|
||||
if isinstance(context['view'], UnifiedJobStdout):
|
||||
context['view'].renderer_classes = [BrowsableAPIRenderer, renderers.JSONRenderer]
|
||||
return exception_handler(exc, context)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user