incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1370061 - /incubator/tashi/trunk/src/tashi/util.py
Date Mon, 06 Aug 2012 23:37:23 GMT
Author: stroucki
Date: Mon Aug  6 23:37:23 2012
New Revision: 1370061

URL: http://svn.apache.org/viewvc?rev=1370061&view=rev
Log:
util.py: if an exception is returned from the remote side, raise it locally. This helps in
client commands like createMany.

Modified:
    incubator/tashi/trunk/src/tashi/util.py

Modified: incubator/tashi/trunk/src/tashi/util.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/util.py?rev=1370061&r1=1370060&r2=1370061&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/util.py (original)
+++ incubator/tashi/trunk/src/tashi/util.py Mon Aug  6 23:37:23 2012
@@ -349,6 +349,11 @@ class Connection:
 			self.connection = None
 			raise
 
+		# if we get a remote exception, raise it locally
+		if (type(returns) is Exception) or \
+		  (type(returns) is TashiException):
+			raise returns
+
 		return returns
 
 	def __getattr__(self, name):



Mime
View raw message