def _check_version(self):
try:
c = pycurl.Curl()
c.setopt(pycurl.SSL_VERIFYPEER, 0)
c.setopt(pycurl.SSL_VERIFYHOST, 0)
c.setopt(pycurl.FOLLOWLOCATION, 1)
data = getJsonFromURL(self.VERSION_URL, handle=c, max_attempts=3)
if data:
msgr.send_object(VersionInfo(data))
# except pycurl.error as e:
# pass
except Exception as e:
logger.error('Failed checking for version updates. Unexpected error: {}'.format(e))
评论列表
文章目录