Skip to content

Commit e0d93de

Browse files
committed
Merge branch 'genthrowstack' of ssh://github.com/jbower-fb/cpython-jbowerfb into genthrowstack
2 parents 6a4ae82 + 30b09d7 commit e0d93de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/genobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ _gen_throw(PyGenObject *gen, int close_on_genexit,
472472
goto throw_here;
473473
}
474474
PyThreadState *tstate = _PyThreadState_GET();
475+
assert(tstate != NULL);
475476
if (PyGen_CheckExact(yf) || PyCoro_CheckExact(yf)) {
476477
/* `yf` is a generator or a coroutine. */
477478

0 commit comments

Comments
 (0)