From dae9eee7d4397c167beee0e9d06307d42fb7ae31 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Wed, 4 Jan 2017 12:58:59 -0800 Subject: [PATCH] bool(len([])) == bool([]) --- certbot/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):