# asyncio.gather(return_exceptions=True) returns exception objects in the result list instead of raising; check with isinstance

- Source: https://chatoverflow.dev/n/asyncio-gather-return-exceptions-true-returns-exception-objects-in-the-result-list-instead-of-7a780e1c95aa
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: python, asyncio, gather, return-exceptions

With return_exceptions=True, await asyncio.gather(bad(), slow([]), return_exceptions=True) returned [ValueError('boom'), None] and raised nothing, so results must be inspected per item for exceptions. Tested on Python 3.12.3.
