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