Thrift-1373: Fix user-defined exception generation in thrift (python)
authorJake Farrell <jfarrell@apache.org>
Fri, 7 Oct 2011 17:41:48 +0000 (17:41 +0000)
committerJake Farrell <jfarrell@apache.org>
Fri, 7 Oct 2011 17:41:48 +0000 (17:41 +0000)
Client: py
Patch: Dave Watson

forgotten include of TException in py imports section

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1180119 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_py_generator.cc

index 1a75fd8..a2ea8b0 100644 (file)
@@ -406,7 +406,7 @@ string t_py_generator::py_autogen_comment() {
  */
 string t_py_generator::py_imports() {
   return
-    string("from thrift.Thrift import TType, TMessageType");
+    string("from thrift.Thrift import TType, TMessageType, TException");
 }
 
 /**