[Opensrf-commits] r2054 - trunk/src/python (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 5 11:15:55 EDT 2010
Author: erickson
Date: 2010-11-05 11:15:53 -0400 (Fri, 05 Nov 2010)
New Revision: 2054
Modified:
trunk/src/python/opensrf.py
Log:
patch from Michael Giarlo for better sanity checking during settings file reading in python (avoid #comment's)
Modified: trunk/src/python/opensrf.py
===================================================================
--- trunk/src/python/opensrf.py 2010-11-05 14:48:14 UTC (rev 2053)
+++ trunk/src/python/opensrf.py 2010-11-05 15:15:53 UTC (rev 2054)
@@ -109,7 +109,7 @@
for key in settings.keys():
svc = settings[key]
- if isinstance(svc, dict) and svc['language'] == 'python':
+ if isinstance(svc, dict) and 'language' in svc and svc['language'] == 'python':
services[key] = svc
More information about the opensrf-commits
mailing list