Browse Source

[trac915] Merge commit '7deb495' into trac915

JINMEI Tatuya 14 years ago
parent
commit
82ead9ea72
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lib/util/python/wrapper_template.cc

+ 1 - 0
src/lib/util/python/wrapper_template.cc

@@ -104,6 +104,7 @@ int
         const string ex_what = "Failed to construct @CPPCLASS@ object: " +
         const string ex_what = "Failed to construct @CPPCLASS@ object: " +
             string(ex.what());
             string(ex.what());
         PyErr_SetString(po_IscException, ex_what.c_str());
         PyErr_SetString(po_IscException, ex_what.c_str());
+        return (-1);
     } catch (...) {
     } catch (...) {
         PyErr_SetString(po_IscException,
         PyErr_SetString(po_IscException,
                         "Unexpected exception in constructing @CPPCLASS@");
                         "Unexpected exception in constructing @CPPCLASS@");