Author: Matti Picus <matti.pi...@gmail.com> Branch: py3.6 Changeset: r97398:14e8383d83e7 Date: 2019-09-07 13:57 +0200 http://bitbucket.org/pypy/pypy/changeset/14e8383d83e7/
Log: maybe fix 585e24d5f093 diff --git a/pypy/interpreter/generator.py b/pypy/interpreter/generator.py --- a/pypy/interpreter/generator.py +++ b/pypy/interpreter/generator.py @@ -786,6 +786,7 @@ # is done. raise OperationError(space.w_StopIteration, space.w_None) if e.match(space, space.w_GeneratorExit): - # Ignore this error. - raise OperationError(space.w_StopIteration, space.w_None) + if self.w_exc_type is None: + # Ignore this error. + raise OperationError(space.w_StopIteration, space.w_None) raise e _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit