Skip to content

Instantly share code, notes, and snippets.

@michelp
Created August 26, 2012 17:42
Show Gist options
  • Save michelp/3481923 to your computer and use it in GitHub Desktop.
Save michelp/3481923 to your computer and use it in GitHub Desktop.
>>> try:
... s = gevent.spawn(lambda: 1/0).join()
... except ZeroDivisionError:
... print 'boop'
...
Traceback (most recent call last):
File "/home/michel/dev/sb/local/lib/python2.7/site-packages/gevent-0.13.7-py2.7-linux-i686.egg/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "<stdin>", line 2, in <lambda>
ZeroDivisionError: integer division or modulo by zero
<Greenlet at 0xb753e11cL: <function <lambda> at 0xb753179c>> failed with ZeroDivisionError
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment