Add unhandled exception handler. Now catches problems and will try and output to the pyfalog, falling back to outputting to the console.

This commit is contained in:
Ebag333
2017-03-18 12:37:23 -07:00
parent 717db2f906
commit b1be2eee06
2 changed files with 177 additions and 169 deletions

View File

@@ -90,7 +90,9 @@ class ErrorFrame(wx.Frame):
errorTextCtrl.AppendText('\n')
errorTextCtrl.AppendText("fs encoding: " + str(sys.getfilesystemencoding() or "Unknown"))
errorTextCtrl.AppendText('\n\n')
errorTextCtrl.AppendText(tb)
if tb:
for line in tb:
errorTextCtrl.AppendText(line)
errorTextCtrl.Layout()
self.SetSizer(mainSizer)