Mon, 30 May 2011 16:36:24 +0200
Fixed a bug in the Python debugger interfaces handling some special exceptions.
Debugger/DebuggerInterfacePython.py | file | annotate | diff | comparison | revisions | |
Debugger/DebuggerInterfacePython3.py | file | annotate | diff | comparison | revisions |
--- a/Debugger/DebuggerInterfacePython.py Sat May 28 15:44:21 2011 +0200 +++ b/Debugger/DebuggerInterfacePython.py Mon May 30 16:36:24 2011 +0200 @@ -824,6 +824,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 Sat May 28 15:44:21 2011 +0200 +++ b/Debugger/DebuggerInterfacePython3.py Mon May 30 16:36:24 2011 +0200 @@ -820,6 +820,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 = ''