DebugClients/Python/DebugBase.py

branch
debugger fine grinding
changeset 5659
cf3ecfec6321
parent 5658
e5f6fe5855fd
child 5667
86554f131048
diff -r e5f6fe5855fd -r cf3ecfec6321 DebugClients/Python/DebugBase.py
--- a/DebugClients/Python/DebugBase.py	Thu Mar 23 20:30:49 2017 +0100
+++ b/DebugClients/Python/DebugBase.py	Fri Mar 24 21:39:11 2017 +0100
@@ -803,12 +803,16 @@
                     filename = excval.filename
                     lineno = excval.lineno
                     charno = excval.offset
-
-                if charno is None:
-                    charno = 0
                 
-                filename = os.path.abspath(filename)
-                realSyntaxError = os.path.exists(filename)
+                if filename is None:
+                    realSyntaxError = False
+                else:
+                    if charno is None:
+                        charno = 0
+                    
+                    filename = os.path.abspath(filename)
+                    realSyntaxError = os.path.exists(filename)
+                
             except (AttributeError, ValueError):
                 message = ""
                 filename = ""

eric ide

mercurial