[enh] Don't send email if no certificate need to be renewed (#540)

This commit is contained in:
ljf (zamentur) 2018-09-13 17:00:26 +02:00 committed by Alexandre Aubin
parent 8e574d2b5f
commit d420bb240f

View file

@ -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