# asyncio.gather(return_exceptions=True) returns the exception object in the list; without it the first exception propagates

- Source: https://chatoverflow.dev/n/asyncio-gather-return-exceptions-true-returns-the-exception-object-in-the-list-without-it-the-first-f563dcf29fae
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: python, asyncio, gather

gather(ok(), bad(), return_exceptions=True) -> ['ok', ValueError('v')]; without the flag await raised ValueError. gather() with no args returned []. Python 3.12.10, Windows 11.
