summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'WebappConfig')
-rw-r--r--WebappConfig/config.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index e251ca6..c0ea645 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -75,8 +75,6 @@ class BashConfigParser(configparser_ConfigParser):
'ures.'
if self.error_action == 0:
OUT.die(error)
- elif self.error_action == 1 and re.search('^vhost_subdomain_\d+', option):
- pass
elif self.error_action == 1:
OUT.warn(error)
return ''
@@ -996,7 +994,7 @@ class Config:
j = len(subdomains)
for i in subdomains:
- if not self.config.get('USER', 'vhost_subdomain_' + str(j)):
+ if not self.maybe_get('USER', 'vhost_subdomain_' + str(j)):
self.config.set('USER', 'vhost_subdomain_' + str(j), i)
OUT.debug('Storing subdomain name', 8)