1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

utils/serializer: Fix attempting to deserialize a single value.

This commit is contained in:
Marc Bonnici 2018-10-29 15:04:59 +00:00 committed by setrofim
parent dcf0418379
commit 88a4677434

View File

@ -139,6 +139,8 @@ class WAJSONDecoder(_json.JSONDecoder):
return v
def load_objects(d):
if not hasattr(d, 'items'):
return d
pairs = []
for k, v in d.items():
if hasattr(v, 'items'):