def my_exception_hook(exception_type, value, traceback):
# Print the error and traceback
print(exception_type, value, traceback)
# Call the normal Exception hook after
sys._excepthook(exception_type, value, traceback)
sys.exit(1)
评论列表
文章目录