From bd6db96c9e297512193a7228dc39e1190ddef139 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 2 Mar 2011 18:38:38 +0000 Subject: [PATCH] bug fix with srfsh.py introspection; better handling/reporting of service exceptions git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_2_0@2197 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/srfsh.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/srfsh.py b/src/python/srfsh.py index c3e226b..ba90c7a 100755 --- a/src/python/srfsh.py +++ b/src/python/srfsh.py @@ -206,7 +206,7 @@ class Srfsh(object): else: args[1] += '.all' - return handle_request(args) + return self.handle_request(args) def handle_router(self, parts): @@ -289,6 +289,9 @@ class Srfsh(object): 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 -- 2.11.0