MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / HandleException

Method HandleException

gui/errorDialog.py:42–59  ·  view source on GitHub ↗
(cls, exc_type, exc_value, exc_traceback)

Source from the content-addressed store, hash-verified

40
41 @classmethod
42 def HandleException(cls, exc_type, exc_value, exc_traceback):
43 with config.logging_setup.threadbound():
44 # Print the base level traceback
45 t = traceback.format_exception(exc_type, exc_value, exc_traceback)
46 pyfalog.critical("\n\n" + "".join(t))
47
48 if cls.__parent is None:
49 app = wx.App(False)
50 cls.__frame = ErrorFrame(None)
51 cls.__frame.addException("".join(t))
52 cls.__frame.Show()
53 app.MainLoop()
54 sys.exit()
55 else:
56 if not cls.__frame:
57 cls.__frame = ErrorFrame(cls.__parent)
58 cls.__frame.Show()
59 cls.__frame.addException("".join(t))
60
61 @classmethod
62 def SetParent(cls, parent):

Callers

nothing calls this directly

Calls 3

ErrorFrameClass · 0.85
addExceptionMethod · 0.80
ShowMethod · 0.45

Tested by

no test coverage detected