Commit d0e623de authored by Denis Bilenko's avatar Denis Bilenko

Greenlet: when killing a not yet started greenlet avoid printing an uninformative traceback

parent 57822e8a
......@@ -220,7 +220,10 @@ class Greenlet(greenlet):
else:
self._exception = args[1]
try:
return greenlet.throw(self, *args)
try:
return greenlet.throw(self, *args)
except:
pass # traceback for this is useless
finally:
if self._links and self._notifier is None:
self._notifier = core.active_event(self._notify_links)
......
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