474 elif ex not in ignored_exceptions: |
474 elif ex not in ignored_exceptions: |
475 result = Display_Exception_Dialog(e_type,e_value,e_traceback) |
475 result = Display_Exception_Dialog(e_type,e_value,e_traceback) |
476 if result: |
476 if result: |
477 ignored_exceptions.append(ex) |
477 ignored_exceptions.append(ex) |
478 info = { |
478 info = { |
479 'app-title' : wx.GetApp().GetAppName(), # app_title |
479 'app-title': wx.GetApp().GetAppName(), # app_title |
480 'app-version' : app_version, |
480 'app-version': app_version, |
481 'wx-version' : wx.VERSION_STRING, |
481 'wx-version': wx.VERSION_STRING, |
482 'wx-platform' : wx.Platform, |
482 'wx-platform': wx.Platform, |
483 'python-version' : platform.python_version(), #sys.version.split()[0], |
483 'python-version': platform.python_version(), #sys.version.split()[0], |
484 'platform' : platform.platform(), |
484 'platform': platform.platform(), |
485 'e-type' : e_type, |
485 'e-type': e_type, |
486 'e-value' : e_value, |
486 'e-value': e_value, |
487 'date' : time.ctime(), |
487 'date': time.ctime(), |
488 'cwd' : os.getcwd(), |
488 'cwd': os.getcwd(), |
489 } |
489 } |
490 if e_traceback: |
490 if e_traceback: |
491 info['traceback'] = ''.join(traceback.format_tb(e_traceback)) + '%s: %s' % (e_type, e_value) |
491 info['traceback'] = ''.join(traceback.format_tb(e_traceback)) + '%s: %s' % (e_type, e_value) |
492 last_tb = get_last_traceback(e_traceback) |
492 last_tb = get_last_traceback(e_traceback) |
493 exception_locals = last_tb.tb_frame.f_locals # the locals at the level of the stack trace where the exception actually occurred |
493 exception_locals = last_tb.tb_frame.f_locals # the locals at the level of the stack trace where the exception actually occurred |