diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2010-09-29 16:48:12 +0200 |
---|---|---|
committer | Michele Simionato <michele.simionato@gmail.com> | 2010-09-29 16:48:12 +0200 |
commit | 103491bf3c502794cacb037489557a7b7010bd10 (patch) | |
tree | ceecb70d03a51317bf8986dc9cfe8870b25b73cc | |
parent | 37995335ba3759b17f65b30a71119087bc72872e (diff) | |
download | micheles-103491bf3c502794cacb037489557a7b7010bd10.tar.gz |
Fixed a bug in the traceback reporting
-rw-r--r-- | plac/plac_ext.py | 2 |
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' |