mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-22 05:13:22 +08:00
[pykd] updated: !pycmd
git-svn-id: https://pykd.svn.codeplex.com/svn@68283 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
679b315aac
commit
162c58eb33
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user