]> git.saurik.com Git - wxWidgets.git/commitdiff
Comment why we don't call PyErr_Print after calling OnInit
authorRobin Dunn <robin@alldunn.com>
Thu, 7 Sep 2006 17:19:22 +0000 (17:19 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 7 Sep 2006 17:19:22 +0000 (17:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/helpers.cpp

index 9c983e008bea51e44f7f97a1b29e0913336315f8..6b7225f01d3bf5b40d31db76bc42760f02219850 100644 (file)
@@ -495,6 +495,8 @@ void wxPyApp::_BootstrapApp()
         Py_DECREF(argTuple);
         Py_DECREF(method);
         if (retval == NULL)
         Py_DECREF(argTuple);
         Py_DECREF(method);
         if (retval == NULL)
+            // Don't PyErr_Print here, let the exception in this case go back
+            // up to the wx.PyApp.__init__ scope.
             goto error;
 
         pyint = PyNumber_Int(retval);
             goto error;
 
         pyint = PyNumber_Int(retval);