jwack.py: print the full traceback if a task fails to run.
This commit is contained in:
parent
9b23b2c67a
commit
2a9a332451
1 changed files with 2 additions and 1 deletions
3
jwack.py
3
jwack.py
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue