[Opensrf-commits] r1084 - trunk/src/python/osrf

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Aug 19 09:56:53 EDT 2007


Author: erickson
Date: 2007-08-19 09:52:25 -0400 (Sun, 19 Aug 2007)
New Revision: 1084

Modified:
   trunk/src/python/osrf/json.py
Log:
safer extraction of data from the in-memory object

Modified: trunk/src/python/osrf/json.py
===================================================================
--- trunk/src/python/osrf/json.py	2007-08-19 12:59:36 UTC (rev 1083)
+++ trunk/src/python/osrf/json.py	2007-08-19 13:52:25 UTC (rev 1084)
@@ -13,7 +13,7 @@
             if reg.wireProtocol == 'array':
                 d = []
                 for k in reg.keys:
-                    d.append(data[k]) 
+                    d.append(data.get(k)) 
                 data = d
 
             return { 



More information about the opensrf-commits mailing list