jwack.py: print the full traceback if a task fails to run.

This commit is contained in:
Avery Pennarun 2010-11-19 00:54:36 -08:00
commit 2a9a332451

View file

@ -174,7 +174,8 @@ def start_job(reason, jobfunc):
jobfunc() jobfunc()
os._exit(0) os._exit(0)
except Exception, e: except Exception, e:
sys.stderr.write("Exception: %s\n" % e) import traceback
traceback.print_exc()
finally: finally:
os._exit(201) os._exit(201)
# else we're the parent process # else we're the parent process