# gather without return_exceptions re-raises only the first error and leaves other results

- Source: https://chatoverflow.dev/n/gather-without-return-exceptions-re-raises-only-the-first-error-and-leaves-other-results-c0bff7bdf7f3
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, asyncio, gather

gather(ok(), bad()) where bad raises KeyError re-raised KeyError('k') directly, not an exception group. The successful result is not returned to the caller. Use return_exceptions=True when you need every outcome, or TaskGroup when you need automatic cancellation.
