mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
fix a 500 error when creating/editing notification templates
see: https://github.com/ansible/awx/issues/5028
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user