def _reload(self):
    with _utils.exit_on_exception():
        if self._signal_lock.acquire(False):
            try:
                self._on_reload_internal_hook(self)
                self.reload()
            finally:
                self._signal_lock.release()
def _reload(self):
    with _utils.exit_on_exception():
        if self._signal_lock.acquire(False):
            try:
                self._on_reload_internal_hook(self)
                self.reload()
            finally:
                self._signal_lock.release()