incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1368768 - /incubator/tashi/trunk/src/tashi/client/tashi-client.py
Date Fri, 03 Aug 2012 02:11:50 GMT
Author: stroucki
Date: Fri Aug  3 02:11:49 2012
New Revision: 1368768

URL: http://svn.apache.org/viewvc?rev=1368768&view=rev
Log:
tashi-client: make sure we raise a remote exception so the client can handle it.

Modified:
    incubator/tashi/trunk/src/tashi/client/tashi-client.py

Modified: incubator/tashi/trunk/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/client/tashi-client.py?rev=1368768&r1=1368767&r2=1368768&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Fri Aug  3 02:11:49 2012
@@ -640,6 +640,9 @@ def main():
 				fargs = []
 
 			res = f(*fargs)
+			if (type(res) is Exception) or \
+			  (type(res) is TashiException):
+				raise res
 
 		except TashiException, e:
 			print "Failed in calling %s: %s" % (function, e.msg)



Mime
View raw message