From: erickson Date: Tue, 30 Nov 2010 14:27:50 +0000 (+0000) Subject: fail gracefully when opensrf.settings is not up and running X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=93ef2ee204175a57c8d30b57dc0361ec9b532c01;p=working%2FOpenSRF.git fail gracefully when opensrf.settings is not up and running git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_2_0@2120 9efc2488-bf62-4759-914b-345cdb29e865 --- 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')