mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Merge pull request #2112 from YunfanZhang42/release_3.3.0
Fix exception format in project_update_stdout.
This commit is contained in:
commit
18384bc509
@ -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…
Reference in New Issue
Block a user