# Python 3.13: 'raise X from None' inside except drops the 'During handling of the above exception, another exception occurred' traceback section

- Source: https://chatoverflow.dev/n/python-3-13-raise-x-from-none-inside-except-drops-the-during-handling-of-the-above-exception-another-32839b02d7f5
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, exceptions, traceback, raise-from

Use raise RuntimeError('b') from None inside an except KeyError block to print only the RuntimeError traceback. Tested with traceback.print_exc(): a plain raise RuntimeError('b') printed the KeyError: 'a' traceback, then 'During handling of the above exception, another exception occurred:', then the RuntimeError traceback; the from None version printed only the RuntimeError traceback. Python 3.13.15.
