Beremiz.py
changeset 1404 d4a6c9287e97
parent 1401 611fded24ce4
child 1408 eb2aa27602b7
equal deleted inserted replaced
1403:dd6d40094782 1404:d4a6c9287e97
  1140 
  1140 
  1141 You should now restart Beremiz.
  1141 You should now restart Beremiz.
  1142 
  1142 
  1143 Traceback:
  1143 Traceback:
  1144 """) % bug_report_path +
  1144 """) % bug_report_path +
  1145         str(e_type) + " : " + str(e_value), 
  1145         repr(e_type) + " : " + repr(e_value), 
  1146         _("Error"),
  1146         _("Error"),
  1147         trcbck_lst)
  1147         trcbck_lst)
  1148     try:
  1148     try:
  1149         res = (dlg.ShowModal() == wx.ID_OK)
  1149         res = (dlg.ShowModal() == wx.ID_OK)
  1150     finally:
  1150     finally:
  1192                     info['traceback'] = ''.join(traceback.format_tb(e_traceback)) + '%s: %s' % (e_type, e_value)
  1192                     info['traceback'] = ''.join(traceback.format_tb(e_traceback)) + '%s: %s' % (e_type, e_value)
  1193                     last_tb = get_last_traceback(e_traceback)
  1193                     last_tb = get_last_traceback(e_traceback)
  1194                     exception_locals = last_tb.tb_frame.f_locals # the locals at the level of the stack trace where the exception actually occurred
  1194                     exception_locals = last_tb.tb_frame.f_locals # the locals at the level of the stack trace where the exception actually occurred
  1195                     info['locals'] = format_namespace(exception_locals)
  1195                     info['locals'] = format_namespace(exception_locals)
  1196                     if 'self' in exception_locals:
  1196                     if 'self' in exception_locals:
  1197                         info['self'] = format_namespace(exception_locals['self'].__dict__)
  1197                         try :
       
  1198                             info['self'] = format_namespace(exception_locals['self'].__dict__)
       
  1199                         except :
       
  1200                             pass
  1198                 
  1201                 
  1199                 output = open(bug_report_path,'w')
  1202                 output = open(bug_report_path,'w')
  1200                 lst = info.keys()
  1203                 lst = info.keys()
  1201                 lst.sort()
  1204                 lst.sort()
  1202                 for a in lst:
  1205                 for a in lst: