DebugClients/Python3/DebugBase.py

changeset 5184
79b3922094ba
parent 5169
74e000797a93
child 5185
a55cbfbd715e
--- a/DebugClients/Python3/DebugBase.py	Wed Sep 28 20:04:44 2016 +0200
+++ b/DebugClients/Python3/DebugBase.py	Fri Sep 30 19:21:22 2016 +0200
@@ -754,10 +754,13 @@
         
         if exctype in [SyntaxError, IndentationError]:
             try:
+                printerr("1")
                 message = str(excval)
                 filename = excval.filename
                 lineno = excval.lineno
                 charno = excval.offset
+                if charno is None:
+                    charno = 0
                 realSyntaxError = os.path.exists(filename)
             except (AttributeError, ValueError):
                 message = ""

eric ide

mercurial