From 9fc309083ac893619604502fb68136bbc90983b4 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 7 Mar 2012 18:11:31 -0600 Subject: indicate we're not running as we leave this block --- Objects/genobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/genobject.c b/Objects/genobject.c index e41779e..b065fc7 100644 --- a/Objects/genobject.c +++ b/Objects/genobject.c @@ -356,6 +356,7 @@ gen_throw(PyGenObject *gen, PyObject *args) PyErr_Clear(); Py_DECREF(yf); gen_undelegate(gen); + gen->gi_running = 0; goto throw_here; } ret = PyObject_CallObject(meth, args); -- cgit v0.12