[pykd] updated: !pycmd

git-svn-id: https://pykd.svn.codeplex.com/svn@68283 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2011-07-26 08:16:58 +00:00
parent 679b315aac
commit 162c58eb33

View File

@ -963,16 +963,16 @@ pycmd( PDEBUG_CLIENT4 client, PCSTR args )
if ( errtype && errvalue )
{
boost::python::tuple errValueObj( boost::python::handle<>( boost::python::borrowed(errvalue) ) );
PyObject *errvalueStr = PyObject_Str(errvalue);
std::string errValueStr = boost::python::extract<std::string>( errvalueStr );
Py_XDECREF(errvalueStr);
if ( PyErr_GivenExceptionMatches( syntaxError.ptr(), errtype ) )
{
boost::python::tuple errValueObj( boost::python::handle<>( boost::python::borrowed(errvalue) ) );
Py_XDECREF(errvalueStr);
if ( errValueObj[0] == "unexpected EOF while parsing" )
{
commandCompleted = false;