From 8622341cbcab5f7b7e16cd771f3bb98324c0c15c Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 5 Nov 2010 15:15:53 +0000 Subject: [PATCH] patch from Michael Giarlo for better sanity checking during settings file reading in python (avoid #comment's) git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2054 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/opensrf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/opensrf.py b/src/python/opensrf.py index 63d9866..70fac50 100755 --- a/src/python/opensrf.py +++ b/src/python/opensrf.py @@ -109,7 +109,7 @@ def do_init(): 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 -- 2.11.0