Answers for "how to get the tracebacl from exception in python"

4

python print error traceback

import traceback

try:
    raise TypeError("Oups!")
except Exception, err:
    try:
        raise TypeError("Again !?!")
    except:
        pass

    traceback.print_exc()
Posted by: Guest on May-07-2020

Code answers related to "how to get the tracebacl from exception in python"

Python Answers by Framework

Browse Popular Code Answers by Language