mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
fix a 500 error when creating/editing notification templates
see: https://github.com/ansible/awx/issues/5028
This commit is contained in:
parent
5001d3158d
commit
4c92e0af77
@ -4406,6 +4406,8 @@ class NotificationTemplateSerializer(BaseSerializer):
|
||||
for event in messages:
|
||||
if not messages[event]:
|
||||
continue
|
||||
if not isinstance(messages[event], dict):
|
||||
continue
|
||||
body = messages[event].get('body', {})
|
||||
if body:
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user