Commit d7f94b46 authored by Denis Bilenko's avatar Denis Bilenko

threadpool.py: when reporting context of the error, also include the threadpool itself

parent a60b5549
...@@ -173,7 +173,7 @@ class ThreadPool(object): ...@@ -173,7 +173,7 @@ class ThreadPool(object):
exc_info = getattr(sys, 'exc_info', None) exc_info = getattr(sys, 'exc_info', None)
if exc_info is None: if exc_info is None:
return return
result.handle_error(func, exc_info()) result.handle_error((self, func), exc_info())
else: else:
if sys is None: if sys is None:
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment