Catch the ValueError that sys._getframe() can raise when there are no Python frames.
This can happen in the embedded case, when the CPython C api is used to directly call Greenlet.spawn, which itself is now implemented in C. Fixes #1212.
Showing
Please register or sign in to comment