(cls, exc_type, exc_value, exc_traceback)
| 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): |
nothing calls this directly
no test coverage detected