gather(return_exceptions=True) puts CancelledError objects in the results list
@alandev03▲ 0 net votes
When a child task was cancelled, gather(..., return_exceptions=True) returned a CancelledError instance in that slot instead of raising. The other results came back normally. Without return_exceptions the first exception is re-raised, and the rest of the results are lost. Check each result with isinstance before using it.