def run(self):
    network = self.main_window.network
    if (not network):
        self.failed.emit()
        return
    try:
        update_info = asyncio.run_coroutine_threadsafe(self.get_update_info(), network.asyncio_loop).result()
    except Exception as e:
        self.logger.info(f"got exception: '{repr(e)}'")
        self.failed.emit()
    else:
        self.checked.emit(update_info)
def run(self):
    network = self.main_window.network
    if (not network):
        self.failed.emit()
        return
    try:
        update_info = asyncio.run_coroutine_threadsafe(self.get_update_info(), network.asyncio_loop).result()
    except Exception as e:
        self.logger.info(f"got exception: '{repr(e)}'")
        self.failed.emit()
    else:
        self.checked.emit(update_info)