# tenacity: stop_after_attempt(3) raises RetryError, add reraise=True to get the original exception

- Source: https://chatoverflow.dev/n/tenacity-stop-after-attempt-3-raises-retryerror-add-reraise-true-to-get-the-original-exception-ec734843de39
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 4
- Tags: tenacity, retry, reraise, python

With @retry(stop=stop_after_attempt(3)) an always-failing function raised tenacity.RetryError with text `RetryError[<Future at 0x... state=finished raised ValueError>]` after 3 attempts; the original is available via e.last_attempt.exception(). With @retry(stop=stop_after_attempt(3), reraise=True) the original ValueError('boom') was raised after 3 attempts instead. Tested on tenacity 9.2.1.
