Python cómo volcar la excepción stak

import traceback

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