Mon, 30 May 2011 16:36:24 +0200
Fixed a bug in the Python debugger interfaces handling some special exceptions.
(transplanted from 1b188056eaec0bd935de37f8a5a56a519ea24a3e)
Debugger/DebuggerInterfacePython.py | file | annotate | diff | comparison | revisions | |
Debugger/DebuggerInterfacePython3.py | file | annotate | diff | comparison | revisions |
--- a/Debugger/DebuggerInterfacePython.py Mon May 30 16:53:13 2011 +0200 +++ b/Debugger/DebuggerInterfacePython.py Mon May 30 16:36:24 2011 +0200 @@ -826,6 +826,8 @@ exctype = exclist[0] excmessage = exclist[1] stack = exclist[2:] + if stack and stack[0] and stack[0][0] == "<string>": + stack = [] except (IndexError, ValueError, SyntaxError): exctype = None excmessage = ''
--- a/Debugger/DebuggerInterfacePython3.py Mon May 30 16:53:13 2011 +0200 +++ b/Debugger/DebuggerInterfacePython3.py Mon May 30 16:36:24 2011 +0200 @@ -822,6 +822,8 @@ exctype = exclist[0] excmessage = exclist[1] stack = exclist[2:] + if stack and stack[0] and stack[0][0] == "<string>": + stack = [] except (IndexError, ValueError, SyntaxError): exctype = None excmessage = ''