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