Compare commits
5 Commits
78ab1b2c13
...
3b022d4611
| Author | SHA1 | Date |
|---|---|---|
|
|
3b022d4611 | |
|
|
629e245a77 | |
|
|
a288efaf0b | |
|
|
6e1c3f9901 | |
|
|
361f6fcce4 |
|
|
@ -340,16 +340,7 @@ async def start_or_cancel(
|
||||||
if (
|
if (
|
||||||
rte.args
|
rte.args
|
||||||
and
|
and
|
||||||
isinstance(rte.args[0], str)
|
'started' in rte.args[0]
|
||||||
and
|
|
||||||
# match trio's *exact* "child exited without calling
|
|
||||||
# task_status.started()" wording — a bare `'started'`
|
|
||||||
# substring would also match a child task's OWN
|
|
||||||
# `RuntimeError(...started...)` and (under cancellation)
|
|
||||||
# demote it to a `Cancelled`, losing the real error. The
|
|
||||||
# `isinstance` guard also avoids a `TypeError` when
|
|
||||||
# `rte.args[0]` isn't a `str`.
|
|
||||||
'child exited without calling' in rte.args[0]
|
|
||||||
):
|
):
|
||||||
# re-raises the in-flight `trio.Cancelled` IFF we're
|
# re-raises the in-flight `trio.Cancelled` IFF we're
|
||||||
# under effective cancellation; else a cheap no-op and
|
# under effective cancellation; else a cheap no-op and
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue