8000 Fix some yield from and await tracebacks · python/cpython@cdf7fc4 · GitHub
[go: up one dir, main page]

Skip to content

Commit cdf7fc4

Browse files
committed
Fix some yield from and await tracebacks
1 parent ea0ecaa commit cdf7fc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/ceval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,11 +2674,11 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
26742674
PyErr_Clear();
26752675
_PyErr_Restore(tstate, exc_type, exc_value, exc_traceback);
26762676
}
2677-
goto error;
2677+
goto exception_unwind;
26782678
}
26792679
if (found == 0) {
26802680
_PyErr_Restore(tstate, exc_type, exc_value, exc_traceback);
2681-
goto error;
2681+
goto exception_unwind;
26822682
}
26832683
PyObject *retval = PyObject_CallFunctionObjArgs(
26842684
throw, exc_type, exc_value, exc_traceback, NULL);
@@ -2697,7 +2697,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
26972697
frame);
26982698
}
26992699
if (_PyGen_FetchStopIterationValue(&TOP())) {
2700-
goto error;
2700+
goto exception_unwind;
27012701
}
27022702
Py_DECREF(yieldfrom);
27032703
JUMPBY(oparg);

0 commit comments

Comments
 (0)
0