def __init__(self, data_controller):
    self.data_controller = data_controller
    self.exception = None
    threading.excepthook = self._threading_excepthook
def __init__(self, data_controller):
    self.data_controller = data_controller
    self.exception = None
    threading.excepthook = self._threading_excepthook