[Opensrf-commits] r2197 - branches/rel_2_0/src/python (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 2 13:38:41 EST 2011
Author: erickson
Date: 2011-03-02 13:38:38 -0500 (Wed, 02 Mar 2011)
New Revision: 2197
Modified:
branches/rel_2_0/src/python/srfsh.py
Log:
bug fix with srfsh.py introspection; better handling/reporting of service exceptions
Modified: branches/rel_2_0/src/python/srfsh.py
===================================================================
--- branches/rel_2_0/src/python/srfsh.py 2011-03-02 18:38:09 UTC (rev 2196)
+++ branches/rel_2_0/src/python/srfsh.py 2011-03-02 18:38:38 UTC (rev 2197)
@@ -206,7 +206,7 @@
else:
args[1] += '.all'
- return handle_request(args)
+ return self.handle_request(args)
def handle_router(self, parts):
@@ -289,6 +289,9 @@
except osrf.net.XMPPNoRecipient:
self.report("Unable to communicate with %s\n" % service)
break
+ except osrf.ex.OSRFServiceException, e:
+ self.report("Server exception occurred: %s" % e)
+ break
total = time.time() - start
More information about the opensrf-commits
mailing list