Commit 685d7459 authored by Denis Bilenko's avatar Denis Bilenko

pool: fix Issue 36: TypeError raised from pool.join(raise_error=True)....

pool: fix Issue 36: TypeError raised from pool.join(raise_error=True). Original patch by David Hain.
parent 47f96024
......@@ -97,7 +97,7 @@ class Group(object):
greenlets = self.greenlets.copy()
self._empty_event.wait(timeout=timeout)
for greenlet in greenlets:
if not greenlet.successful():
if greenlet.exception is not None:
raise greenlet.exception
else:
self._empty_event.wait(timeout=timeout)
......
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