diff --git a/awx/api/serializers.py b/awx/api/serializers.py index eaa5ec7e4c..09066a4871 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -4522,8 +4522,8 @@ class NotificationSerializer(BaseSerializer): # attempt to load json string try: potential_body = json.loads(obj.body) - if isinstance(potential_body, dict) and 'body' in potential_body: - return potential_body['body'] + if isinstance(potential_body, dict): + return potential_body except json.JSONDecodeError: pass return obj.body