From: erickson Date: Fri, 5 Nov 2010 15:15:53 +0000 (+0000) Subject: patch from Michael Giarlo for better sanity checking during settings file reading... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8622341cbcab5f7b7e16cd771f3bb98324c0c15c;p=working%2FOpenSRF.git 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 --- 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