mirror of
https://github.com/certbot/certbot.git
synced 2026-04-23 07:07:03 -04:00
Moving code outside of try block
This commit is contained in:
parent
e612d52693
commit
fb8b2f1415
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue