logging.info('%s: checking', domain)
conf = load_conf(domain)
- webroot_path = conf.get('[webroot_map', domain)
+ try:
+ webroot_path = conf.get('[webroot_map', domain)
+ except configparser.NoOptionError:
+ webroot_path = conf.get('renewalparams', 'webroot_path')
+ # The conf writing has a bug here where it appends a comma.
+ webroot_path = webroot_path.rstrip(',')
cert_path = os.path.realpath(conf.get('globals', 'cert'))