def suppress_chaining(): """ This will suppress any exceptions further down in the call stack and is usually the preferred way in order to keep tracebacks short, unless the 'parent' exceptions are useful to debugging as described above. """ try: 1/0 except Exception: raise RuntimeError('Something') from None suppress_chaining()