BeremizIDE.py
changeset 1718 703ddaf48b00
parent 1708 24416137cda7
child 1720 f974476b16bb
equal deleted inserted replaced
1717:a86deec92e08 1718:703ddaf48b00
  1164         last_tb = get_last_traceback(e_traceback)
  1164         last_tb = get_last_traceback(e_traceback)
  1165         ex = (last_tb.tb_frame.f_code.co_filename, last_tb.tb_frame.f_lineno)
  1165         ex = (last_tb.tb_frame.f_code.co_filename, last_tb.tb_frame.f_lineno)
  1166         if ex not in ignored_exceptions:
  1166         if ex not in ignored_exceptions:
  1167             ignored_exceptions.append(ex)
  1167             ignored_exceptions.append(ex)
  1168             date = time.ctime()
  1168             date = time.ctime()
  1169             bug_report_path = path + os.sep + "bug_report_" + date.replace(':', '-').replace(' ', '_') + ".txt"
  1169             bug_report_path = path + os.sep + "bug_report_" + time.strftime("%Y_%m_%d__%H-%M-%S") + ".txt"
  1170             save_bug_report(e_type, e_value, e_traceback, bug_report_path, date)
  1170             save_bug_report(e_type, e_value, e_traceback, bug_report_path, date)
  1171             Display_Exception_Dialog(e_type, e_value, e_traceback, bug_report_path)
  1171             Display_Exception_Dialog(e_type, e_value, e_traceback, bug_report_path)
  1172     #sys.excepthook = lambda *args: wx.CallAfter(handle_exception, *args)
  1172     #sys.excepthook = lambda *args: wx.CallAfter(handle_exception, *args)
  1173     sys.excepthook = handle_exception
  1173     sys.excepthook = handle_exception
  1174 
  1174