util.py: if an exception is returned from the remote side, raise it locally. This helps in client commands like createMany.

git-svn-id: https://svn.apache.org/repos/asf/incubator/tashi/trunk@1370061 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/tashi/util.py b/src/tashi/util.py
index c2bd6b8..8d02822 100644
--- a/src/tashi/util.py
+++ b/src/tashi/util.py
@@ -349,6 +349,11 @@
 			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):