From: Benjamin Peterson Date: Thu, 8 Mar 2012 00:11:31 +0000 (-0600) Subject: indicate we're not running as we leave this block X-Git-Tag: v3.3.0a2~266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fc309083ac893619604502fb68136bbc90983b4;p=python indicate we're not running as we leave this block --- diff --git a/Objects/genobject.c b/Objects/genobject.c index e41779e8a2..b065fc7976 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);