Fix an issue where we were incorrectly trying to deserialize variables

contained in the inventory activity stream change reported in:

https://trello.com/c/5eIrrOvY
This commit is contained in:
Matthew Jones 2014-08-21 13:12:11 -04:00
parent a3c9dc7deb
commit 0f67f6d57c

View File

@ -1472,10 +1472,7 @@ class ActivityStreamSerializer(BaseSerializer):
if obj is None:
return {}
try:
d_changes = json.loads(obj.changes)
if 'variables' in d_changes:
d_changes['variables'] = json.loads(d_changes['variables'])
return d_changes
return json.loads(obj.changes)
except Exception, e:
logger.warn("Error deserializing activity stream json changes")
return {}