From f5dc2620ba9c1e5c0f407da4b5a23660b19f3bb7 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 2 Mar 2011 18:38:09 +0000 Subject: [PATCH] bug fix with srfsh.py introspection; better handling/reporting of service exceptions git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2196 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.43.2