1143 |
1143 |
1144 |
1144 |
1145 ignored_exceptions = [] # a problem with a line in a module is only reported once per session |
1145 ignored_exceptions = [] # a problem with a line in a module is only reported once per session |
1146 |
1146 |
1147 |
1147 |
1148 def AddExceptHook(path, app_version='[No version]'): #, ignored_exceptions=[]): |
1148 def AddExceptHook(path, app_version='[No version]'): |
1149 |
1149 |
1150 def save_bug_report(e_type, e_value, e_traceback, bug_report_path, date): |
1150 def save_bug_report(e_type, e_value, e_traceback, bug_report_path, date): |
1151 info = { |
1151 info = { |
1152 'app-title': wx.GetApp().GetAppName(), # app_title |
1152 'app-title': wx.GetApp().GetAppName(), |
1153 'app-version': app_version, |
1153 'app-version': app_version, |
1154 'wx-version': wx.VERSION_STRING, |
1154 'wx-version': wx.VERSION_STRING, |
1155 'wx-platform': wx.Platform, |
1155 'wx-platform': wx.Platform, |
1156 'python-version': platform.python_version(), # sys.version.split()[0], |
1156 'python-version': platform.python_version(), |
1157 'platform': platform.platform(), |
1157 'platform': platform.platform(), |
1158 'e-type': e_type, |
1158 'e-type': e_type, |
1159 'e-value': e_value, |
1159 'e-value': e_value, |
1160 'date': date, |
1160 'date': date, |
1161 'cwd': os.getcwd(), |
1161 'cwd': os.getcwd(), |