From be0408dc24a4e50aacfdae7e9f2852e443d4c29f Mon Sep 17 00:00:00 2001 From: James Kasten Date: Sat, 17 Nov 2012 04:34:06 -0500 Subject: [PATCH] add check to gen_https_names to make sure domains contains a list of strings --- trustify/client/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trustify/client/client.py b/trustify/client/client.py index e82128bba..55a1ede10 100644 --- a/trustify/client/client.py +++ b/trustify/client/client.py @@ -273,7 +273,9 @@ def gen_https_names(domains): result = result + "and " if len(domains) == 2: return "https://" + domains[0] + " and https://" + domains[1] - result = result + "https://" + domains[len(domains)-1] + + if domains: + result = result + "https://" + domains[len(domains)-1] return result def challenge_factory(r, req_filepath, key_filepath, config):