[mod] pep8

This commit is contained in:
Laurent Peuch 2016-11-09 08:38:58 +01:00
parent 937cccf813
commit 9e5b2743db

View file

@ -325,9 +325,9 @@ def certificate_renew(auth, domain_list, force=False, no_checks=False, email=Fal
###############################################################################
def _check_old_letsencrypt_app():
installedAppIds = [app["id"] for app in yunohost.app.app_list(installed=True)["apps"]]
if ("letsencrypt" not in installedAppIds) :
if "letsencrypt" not in installedAppIds:
return
logger.warning(" ")
@ -347,6 +347,7 @@ def _check_old_letsencrypt_app():
raise MoulinetteError(errno.EINVAL, m18n.n('certmanager_old_letsencrypt_app_detected'))
def _install_cron():
cron_job_file = "/etc/cron.weekly/yunohost-certificate-renew"
@ -693,7 +694,7 @@ def _domain_is_accessible_through_HTTP(ip, domain):
try:
r = requests.head("http://" + ip, headers={"Host": domain})
# Check we got the ssowat header in the response
if ("x-sso-wat" not in r.headers.keys()) :
if "x-sso-wat" not in r.headers.keys():
return False
except Exception:
return False