mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 07:28:02 -03:30
Add more verification when deserializing json changes field on activity stream
This commit is contained in:
parent
7fda453720
commit
66d6e2fe43
@ -979,7 +979,12 @@ class ActivityStreamSerializer(BaseSerializer):
|
||||
def get_changes(self, obj):
|
||||
if obj is None:
|
||||
return {}
|
||||
return json.loads(obj.changes)
|
||||
try:
|
||||
d_changes = json.loads(obj.changes)
|
||||
return d_changes
|
||||
except Exception, e:
|
||||
logger.warn("Error deserializing activity stream json changes")
|
||||
return {}
|
||||
|
||||
def get_related(self, obj):
|
||||
if obj is None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user