Commit d2fed600 authored by Tom Niget's avatar Tom Niget

Hide debug line

parent 58cfc1b2
......@@ -63,8 +63,8 @@ def exception_hook(exc_type, exc_value, tb):
last_node.lineno = 1
print(ast.unparse(last_node))
return
print(f"From {last_node.lineno}:{last_node.col_offset} to {last_node.end_lineno}:{last_node.end_col_offset}")
print(f"In file {cf.white(last_file)}:{last_node.lineno}")
#print(f"From {last_node.lineno}:{last_node.col_offset} to {last_node.end_lineno}:{last_node.end_col_offset}")
with open(last_file, "r", encoding="utf-8") as f:
code = f.read()
hg = (str(highlight(code, True))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment