From fb8b2f1415cde36ebf0a7494c024641fe5c8ba3c Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Thu, 14 May 2015 12:40:03 -0700 Subject: [PATCH] Moving code outside of try block --- letsencrypt/renewer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/letsencrypt/renewer.py b/letsencrypt/renewer.py index ca731a1d6..daeeb1bf1 100644 --- a/letsencrypt/renewer.py +++ b/letsencrypt/renewer.py @@ -91,9 +91,10 @@ def main(config=DEFAULTS): print "Processing", i if not i.endswith(".conf"): continue + rc_config = configobj.ConfigObj( + os.path.join(config["renewal_configs_dir"], i)) try: - cert = storage.RenewableCert(configobj.ConfigObj( - os.path.join(config["renewal_configs_dir"], i))) + cert = storage.RenewableCert(rc_config) except ValueError: # This indicates an invalid renewal configuration file, such # as one missing a required parameter (in the future, perhaps