patch from Michael Giarlo for better sanity checking during settings file reading...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 5 Nov 2010 15:15:53 +0000 (15:15 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 5 Nov 2010 15:15:53 +0000 (15:15 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2054 9efc2488-bf62-4759-914b-345cdb29e865

src/python/opensrf.py

index 63d9866..70fac50 100755 (executable)
@@ -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