Fix issue when error happens before wx is even initialized traceback is never set

This commit is contained in:
blitzmann
2018-02-11 23:22:37 -05:00
parent 5f0ce58c29
commit 33618f12f7

View File

@@ -43,7 +43,8 @@ class ErrorHandler(object):
if cls.__parent is None:
app = wx.App(False)
ErrorFrame(None)
cls.__frame = ErrorFrame(None)
cls.__frame.addException("".join(t))
app.MainLoop()
sys.exit()
else: