Revert "THRIFT-585 exceptions in the autogenerated send_METHOD functions are not propagated"
This reverts commit 8345772f299a308496ebaae6516f3f813469f829.
diff --git a/lib/py/src/transport/TTwisted.py b/lib/py/src/transport/TTwisted.py
index 0e03f08..2b77414 100644
--- a/lib/py/src/transport/TTwisted.py
+++ b/lib/py/src/transport/TTwisted.py
@@ -42,7 +42,7 @@
def flush(self):
msg = self.__wbuf.getvalue()
self.__wbuf = StringIO()
- return defer.maybeDeferred(self.sendMessage, msg)
+ self.sendMessage(msg)
def sendMessage(self, message):
raise NotImplementedError
@@ -55,7 +55,7 @@
self.func = func
def sendMessage(self, message):
- return self.func(message)
+ self.func(message)
class ThriftClientProtocol(basic.Int32StringReceiver):