From d420bb240f8a97ce63521e5104d336ecb60a3aef Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Thu, 13 Sep 2018 17:00:26 +0200 Subject: [PATCH] [enh] Don't send email if no certificate need to be renewed (#540) --- src/yunohost/certificate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/certificate.py b/src/yunohost/certificate.py index a2886c266..049eeb0f4 100644 --- a/src/yunohost/certificate.py +++ b/src/yunohost/certificate.py @@ -340,7 +340,7 @@ def certificate_renew(auth, domain_list, force=False, no_checks=False, email=Fal domain_list.append(domain) - if len(domain_list) == 0: + if len(domain_list) == 0 and not email: logger.info("No certificate needs to be renewed.") # Else, validate the domain list given