mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
return if error
This commit is contained in:
parent
5a126a9277
commit
48b03d91cf
1 changed files with 2 additions and 1 deletions
|
|
@ -515,6 +515,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
args = self.aug.match(path + "/arg")
|
||||
except RuntimeError:
|
||||
logger.warn("It looks like one of your paths has a character that your version of augeas can't parse")
|
||||
return None
|
||||
for arg in args:
|
||||
addrs.add(obj.Addr.fromstring(self.parser.get_arg(arg)))
|
||||
is_ssl = False
|
||||
|
|
@ -563,7 +564,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
for path in paths:
|
||||
new_vhost = self._create_vhost(path)
|
||||
realpath = os.path.realpath(new_vhost.filep)
|
||||
if realpath not in vhost_paths.keys():
|
||||
if realpath and realpath not in vhost_paths.keys():
|
||||
vhs.append(new_vhost)
|
||||
vhost_paths[realpath] = new_vhost.filep
|
||||
elif realpath == new_vhost.filep:
|
||||
|
|
|
|||
Loading…
Reference in a new issue