Python automated test patch
Summary: Submitted by Ben Maurer
Reviewed By: dreiss
Test Plan: Automated python testing for Thrift, lovely.
Revert: OK
DiffCamp Revision: 737
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665293 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/py/src/server/TServer.py b/lib/py/src/server/TServer.py
index 2a8d5f4..74bb93e 100644
--- a/lib/py/src/server/TServer.py
+++ b/lib/py/src/server/TServer.py
@@ -90,6 +90,8 @@
client = self.serverTransport.accept()
t = threading.Thread(target = self.handle, args=(client,))
t.start()
+ except KeyboardInterrupt:
+ raise
except Exception, x:
print '%s, %s, %s,' % (type(x), x, traceback.format_exc())