python print traceback from exception

55

python print traceback from exception -

import traceback

try:
    do_stuff()
except Exception as err:
    print(err, traceback.format_exc())

Comments

Submit
0 Comments