From bc088f699e303b24f2b64c8025ea1b62e387be5e Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 13 Jan 2016 20:05:37 +0530 Subject: [PATCH] error handling --- ee/cli/plugins/site_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 188f15c3..f399e9f7 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -1346,9 +1346,9 @@ def archivedCertificateHandle(self,domain,ee_wp_email): "\n\t2: Keep the existing certificate for now" "\n\t3: Renew & replace the certificate (limit ~5 per 7 days)" "") - check_prompt = input("\nType the appropriate number [1-3] or any other key to cancel: ") - + if not os.path.isfile("/etc/letsencrypt/live/{0}/cert.pem".format(domain)): + Log.error(self,"/etc/letsencrypt/live/{0}/cert.pem file is missing.".format(domain)) if check_prompt == "1": ssl = EEShellExec.cmd_exec(self, "./letsencrypt-auto certonly --reinstall --webroot -w /var/www/{0}/htdocs/ -d {0} -d www.{0} " .format(domain)