Commit 34d8ed8e authored by Kirill Smelkov's avatar Kirill Smelkov

X pystone: Manually print traceback (grumpy only prints exception without traceback)

parent 45635ded
#!/bin/sh -e
grumpc pystone.py >pystone.go && go run pystone.go
This diff is collapsed.
......@@ -37,6 +37,7 @@ LOOPS = 50000
#from time import clock
import time
clock = time.clock
import traceback
__version__ = "1.1"
......@@ -269,4 +270,7 @@ if __name__ == '__main__':
error("Invalid argument %r;" % sys.argv[1])
else:
loops = LOOPS
main(loops)
try:
main(loops)
except:
traceback.print_exc()
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