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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user