From 88a4677434d5b493777155518ef09b08cfd4eb57 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 29 Oct 2018 15:04:59 +0000 Subject: [PATCH] utils/serializer: Fix attempting to deserialize a single value. --- wa/utils/serializer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wa/utils/serializer.py b/wa/utils/serializer.py index 0ca7fe64..cd9e2d77 100644 --- a/wa/utils/serializer.py +++ b/wa/utils/serializer.py @@ -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'):