mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 17:37:30 -02: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:
|
for event in messages:
|
||||||
if not messages[event]:
|
if not messages[event]:
|
||||||
continue
|
continue
|
||||||
|
if not isinstance(messages[event], dict):
|
||||||
|
continue
|
||||||
body = messages[event].get('body', {})
|
body = messages[event].get('body', {})
|
||||||
if body:
|
if body:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user