PyDeadObjectError fixes and PFNotebook -> ChromeNotebook renaming

This commit is contained in:
Ryan Holmes
2017-06-12 20:50:05 -04:00
parent 6c317d56ee
commit 951b35a345
4 changed files with 16 additions and 18 deletions

View File

@@ -288,7 +288,7 @@ class FittingView(d.Display):
sFit = Fit.getInstance()
sFit.refreshFit(self.getActiveFit())
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.activeFitID))
except wx._core.PyDeadObjectError:
except RuntimeError:
pyfalog.warning("Caught dead object")
pass
@@ -518,7 +518,7 @@ class FittingView(d.Display):
self.Refresh()
self.Show(self.activeFitID is not None and self.activeFitID == event.fitID)
except wx._core.PyDeadObjectError:
except RuntimeError:
pyfalog.error("Caught dead object")
finally:
event.Skip()