Python cara membuang pengecualian

import traceback

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