From 9556203ae96d428bea27714844496c3709b61dc8 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Thu, 14 May 2015 12:28:24 -0700 Subject: [PATCH] Explicit "is None" --- letsencrypt/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt/storage.py b/letsencrypt/storage.py index c7b4dfb55..08405069a 100644 --- a/letsencrypt/storage.py +++ b/letsencrypt/storage.py @@ -147,7 +147,7 @@ class RenewableCert(object): # pylint: disable=too-many-instance-attributes raise ValueError("unknown kind of item") pattern = re.compile(r"^{0}([0-9]+)\.pem$".format(kind)) target = self.current_target(kind) - if not target or not os.path.exists(target): + if target is None or not os.path.exists(target): target = "" matches = pattern.match(os.path.basename(target)) if matches: