def error_han(type, value, tback):
if enable_betafeatures()==False:
#formatted_lines = traceback.format_exc().splitlines()
long_trace=traceback.format_exception(type, value, tback)
long_trace=str("<br>".join(long_trace))
trace=long_trace.replace("<br>","")
trace=trace.replace(" ","")
dialog=widget_error_han(long_trace,trace)
dialog.exec_()
sys.__excepthook__(type, value, tback)
return True
评论列表
文章目录