0

Fix partial traceback printing on Windows

This commit is contained in:
Andrew Chin
2012-11-29 20:56:26 -05:00
parent 22cefd69e6
commit 3d3ad4e4d6

View File

@@ -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