diff --git a/certbot/hooks.py b/certbot/hooks.py index a8099c4a8..ce4f16262 100644 --- a/certbot/hooks.py +++ b/certbot/hooks.py @@ -85,7 +85,7 @@ def run_saved_post_hooks(): for cmd in post_hook.eventually: logger.info("Running post-hook command: %s", cmd) _run_hook(cmd) - if len(post_hook.eventually) == 0: + if not post_hook.eventually: logger.info("No renewals attempted, so not running post-hook") def renew_hook(config, domains, lineage_path):