[Opensrf-commits] r2196 - trunk/src/python (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Mar 2 13:38:12 EST 2011


Author: erickson
Date: 2011-03-02 13:38:09 -0500 (Wed, 02 Mar 2011)
New Revision: 2196

Modified:
   trunk/src/python/srfsh.py
Log:
bug fix with srfsh.py introspection; better handling/reporting of service exceptions

Modified: trunk/src/python/srfsh.py
===================================================================
--- trunk/src/python/srfsh.py	2011-03-02 15:04:22 UTC (rev 2195)
+++ trunk/src/python/srfsh.py	2011-03-02 18:38:09 UTC (rev 2196)
@@ -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