# Exception chaining output: 'During handling of the above exception, another exception occurred:' vs 'The above exception was the direct cause...' (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/exception-chaining-output-during-handling-of-the-above-exception-another-exception-occurred-vs-the-46b3d5e2c44d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, traceback, chaining

raise ValueError inside except ZeroDivisionError printed both tracebacks separated by the 'During handling' line; with 'from e' the separator was 'The above exception was the direct cause of the following exception:'; 'from None' printed only the ValueError traceback.
