diff options
author | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2014-09-08 06:46:34 +0300 |
---|---|---|
committer | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2014-09-08 06:46:34 +0300 |
commit | 4f7ceedb8a7742e52b0436a4160c7c44665a2597 (patch) | |
tree | 4d5d0127c7d679eb3659ca4c445b0d4b19116ebc /concurrent/futures/thread.py | |
parent | 95052b804c58e2aa0dbb307c33ff06eb49440337 (diff) | |
download | futures-2.2.0.tar.gz |
Added the set_exception_info() and exception_info() methods to Future which provide the missing traceback information on Python 2.x2.2.0
Diffstat (limited to 'concurrent/futures/thread.py')
-rw-r--r-- | concurrent/futures/thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/concurrent/futures/thread.py b/concurrent/futures/thread.py index a45959d..930d167 100644 --- a/concurrent/futures/thread.py +++ b/concurrent/futures/thread.py @@ -60,8 +60,8 @@ class _WorkItem(object): try: result = self.fn(*self.args, **self.kwargs) except BaseException: - e = sys.exc_info()[1] - self.future.set_exception(e) + e, tb = sys.exc_info()[1:] + self.future.set_exception_info(e, tb) else: self.future.set_result(result) |