Fixed a bug in the Python debugger interfaces handling some special exceptions. 5_1_x

Mon, 30 May 2011 16:36:24 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 30 May 2011 16:36:24 +0200
branch
5_1_x
changeset 1077
1b188056eaec
parent 1072
e7b0d18b1121
child 1081
939965310137

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 = ''

eric ide

mercurial