239
239
def __init__(self, *args, **kwargs):
240
248
super(ThreadWithException, self).__init__(*args, **kwargs)
244
253
"""Overrides Thread.run to capture any exception."""
246
256
super(ThreadWithException, self).run()
248
258
self.exception = sys.exc_info()
250
264
def join(self, *args, **kwargs):
251
265
"""Overrides Thread.join to raise any exception caught.