summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2010-09-29 16:48:12 +0200
committerMichele Simionato <michele.simionato@gmail.com>2010-09-29 16:48:12 +0200
commit103491bf3c502794cacb037489557a7b7010bd10 (patch)
treeceecb70d03a51317bf8986dc9cfe8870b25b73cc
parent37995335ba3759b17f65b30a71119087bc72872e (diff)
downloadmicheles-103491bf3c502794cacb037489557a7b7010bd10.tar.gz
Fixed a bug in the traceback reporting
-rw-r--r--plac/plac_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plac/plac_ext.py b/plac/plac_ext.py
index 1920f52..0d89c9a 100644
--- a/plac/plac_ext.py
+++ b/plac/plac_ext.py
@@ -242,7 +242,7 @@ class BaseTask(object):
self.status = 'KILLED'
except: # unexpected exception
self.etype, self.exc, tb = sys.exc_info()
- self.tb = self.traceback if stringify_tb else tb
+ self.tb = ''.join(traceback.format_tb(tb)) if stringify_tb else tb
self.status = 'ABORTED'
else: # regular exit
self.status = 'FINISHED'