From 7e935948fd36147b39b679bd1e1f72ed37911202 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 30 Nov 2010 14:27:30 +0000 Subject: [PATCH] fail gracefully when opensrf.settings is not up and running git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2119 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/opensrf.py.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/python/opensrf.py.in b/src/python/opensrf.py.in index cbfdbb7..cddbab1 100755 --- a/src/python/opensrf.py.in +++ b/src/python/opensrf.py.in @@ -92,7 +92,11 @@ def do_init(): else: domain = osrf.conf.get('domain') - osrf.set.load(domain) + try: + osrf.set.load(domain) + except osrf.net.XMPPNoRecipient: + print "* Unable to communicate with opensrf.settings. Giving up..." + return settings = osrf.set.get('apps') activeapps = osrf.set.get('activeapps') -- 2.11.0