Skip to content

Commit

Permalink
Merge branch 'genthrowstack' of ssh://github.com/jbower-fb/cpython-jb…
Browse files Browse the repository at this point in the history
…owerfb into genthrowstack
  • Loading branch information
jbower-fb committed Nov 19, 2024
2 parents 6a4ae82 + 30b09d7 commit e0d93de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objects/genobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ _gen_throw(PyGenObject *gen, int close_on_genexit,
goto throw_here;
}
PyThreadState *tstate = _PyThreadState_GET();
assert(tstate != NULL);
if (PyGen_CheckExact(yf) || PyCoro_CheckExact(yf)) {
/* `yf` is a generator or a coroutine. */

Expand Down

0 comments on commit e0d93de

Please sign in to comment.