Skip to content

Commit d2fab30

Browse files
kumaraditya303ambv
andauthored
Update Modules/_asynciomodule.c
Co-authored-by: Łukasz Langa <[email protected]>
1 parent e01b381 commit d2fab30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_asynciomodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,8 +2264,8 @@ leave_task(PyObject *loop, PyObject *task)
22642264
if (ts->asyncio_running_task != task) {
22652265
PyErr_Format(
22662266
PyExc_RuntimeError,
2267-
"Cannot enter into task %R while another " \
2268-
"task %R is being executed.",
2267+
"Invalid attempt to leave task %R while " \
2268+
"task %R is entered.",
22692269
task, ts->asyncio_running_task ? ts->asyncio_running_task : Py_None, NULL);
22702270
return -1;
22712271
}

0 commit comments

Comments
 (0)