From 49436a5b40a418b7559c117324b053472b4d94c4 Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 19 Aug 2007 13:52:25 +0000 Subject: [PATCH] safer extraction of data from the in-memory object git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1084 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/osrf/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/osrf/json.py b/src/python/osrf/json.py index 98746e6..a0856bd 100644 --- a/src/python/osrf/json.py +++ b/src/python/osrf/json.py @@ -13,7 +13,7 @@ class osrfJSONNetworkEncoder(simplejson.JSONEncoder): if reg.wireProtocol == 'array': d = [] for k in reg.keys: - d.append(data[k]) + d.append(data.get(k)) data = d return { -- 2.11.0