def initUpdateInfo():
url = client.protocol + client.updateHostPort + "/pre_update"
logging.debug("initUpdateInfo: Start to init update info. url=%s", url)
cur_client = HTTPClient()
response = cur_client.fetch(url, request_timeout=10)
if response.error:
logging.warn("initUpdateInfo: Failed to init update info. error=%s", response.error)
return None
logging.debug("initUpdateInfo: reponse.body=%r", response.body)
res = json_decode(response.body)
return res
评论列表
文章目录