mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-22 05:13:22 +08:00
[0.2.x] fixed : removed annoying stacktrace output for system exit exception
git-svn-id: https://pykd.svn.codeplex.com/svn@81689 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
d28b1fe186
commit
e6dfa51810
@ -27,6 +27,9 @@ void printException()
|
||||
|
||||
PyErr_NormalizeException( &errtype, &errvalue, &traceback );
|
||||
|
||||
if ( errtype == PyExc_SystemExit )
|
||||
return;
|
||||
|
||||
python::object tracebackModule = python::import("traceback");
|
||||
|
||||
std::wstringstream sstr;
|
||||
|
@ -95,6 +95,7 @@ private:
|
||||
|
||||
|
||||
static int quit(void *) {
|
||||
eprintln(L"CTRL+BREAK");
|
||||
PyErr_SetString( PyExc_SystemExit, "" );
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user