From: erickson Date: Tue, 30 Nov 2010 14:27:30 +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=7e935948fd36147b39b679bd1e1f72ed37911202;p=opensrf%2Fbjwebb.git 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 --- 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')