def ready(self):
conn = self._get_connection()
try:
return self._ready_request(conn)
except (ssl.SSLError, ssl.CertificateError):
# If there is a problem with the cert or SSL connection, error out immediately
self.task.update(status="SSL error")
raise
except Exception:
return False
finally:
conn.close()
评论列表
文章目录