From e63aaf7faf96b1e7019099f1bb8d0c12d22acd8e Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Sun, 8 Nov 2015 21:08:50 +0200 Subject: [PATCH] Changed the checks to be more readable and better semantically --- letsencrypt/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index e901246ce..88d7e3d30 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -1153,10 +1153,10 @@ def check_config_sanity(args): # Domain checks if args.domains is not None: # Check if there's a wildcard domain - if any(True for d in args.domains if d.startswith("*.")): + if any(d.startswith("*.") for d in args.domains): raise errors.ConfigurationError("Error: Wildcard domains are not supported") # Punycode - if any(True for d in args.domains if "xn--" in d): + if any("xn--" in d for d in args.domains): raise errors.ConfigurationError("Error: Punycode domains are not supported") # Check for FQDN fqdn = re.compile("^((?!-)[A-Za-z0-9-]{1,63}(?