*** Util.cpp.orig 2005-08-19 15:50:07.021772147 -0700 --- Util.cpp 2005-08-19 15:49:26.612291164 -0700 *************** IcePy::getPythonException(bool clear) *** 237,242 **** --- 237,255 ---- PyErr_Fetch(&t, &val, &tb); // PyErr_Fetch clears the exception. PyErr_NormalizeException(&t, &val, &tb); + // This should use a config property, but I don't know the best way + // to go about it. + if( 1 ) + { + // Increment the references so we can rethrow them after printing + // the traceback to stderr (if we need to). + Py_XINCREF(t); + Py_XINCREF(val); + Py_XINCREF(tb); + PyErr_Restore(t, val, tb); + PyErr_Print(); + } + if(clear) { Py_XDECREF(t);