python comment vider l'exception stak

import traceback

try:
    do_stuff()
except Exception:
    print(traceback.format_exc())
Repulsive Raccoon