Don't let PyDeadObjectError get through, they're harmless anyway on closing the app

This commit is contained in:
cncfanatics
2010-08-29 16:01:09 +02:00
parent 97b8854f88
commit 840657b11c

View File

@@ -27,6 +27,7 @@ from gui.statsPane import StatsPane
from gui.shipBrowser import ShipBrowser
from wx.lib.wordwrap import wordwrap
import aboutData
from wx._core import PyDeadObjectError
class MainFrame(wx.Frame):
__instance = None
@@ -87,7 +88,10 @@ class MainFrame(wx.Frame):
self.notebookBrowsers.SetSelection(tab)
def ExitApp(self, evt):
self.Close()
try:
self.Close()
except PyDeadObjectError:
pass
def ShowAboutBox(self, evt):
info = wx.AboutDialogInfo()