📜  python print traceback from exception - Python代码示例

📅  最后修改于: 2022-03-11 14:45:12.020000             🧑  作者: Mango

代码示例3
import traceback

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

    traceback.print_exc()