Fix partial traceback printing on Windows
This commit is contained in:
@@ -97,7 +97,9 @@ class MultiWorldParser(object):
|
|||||||
if print_rest: lines.append(l)
|
if print_rest: lines.append(l)
|
||||||
else:
|
else:
|
||||||
if "execfile" in l: print_rest = True
|
if "execfile" in l: print_rest = True
|
||||||
logging.error("Partial traceback:\n" + "\n".join(lines))
|
# on windows, our traceback as no 'execfile'. in this case, print everything
|
||||||
|
if print_rest: logging.error("Partial traceback:\n" + "\n".join(lines))
|
||||||
|
else: logging.error("Partial traceback:\n" + "\n".join(formatted_lines))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# At this point, make a pass through the file to possibly set global
|
# At this point, make a pass through the file to possibly set global
|
||||||
|
|||||||
Reference in New Issue
Block a user