From: Robin Dunn Date: Thu, 7 Sep 2006 17:19:22 +0000 (+0000) Subject: Comment why we don't call PyErr_Print after calling OnInit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8383c116984a708d402b4ec47cfa849f7e690e6a Comment why we don't call PyErr_Print after calling OnInit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 9c983e008b..6b7225f01d 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -495,6 +495,8 @@ void wxPyApp::_BootstrapApp() 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);