mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-06-12 09:08:59 +02:00
error unless TRY used
This commit is contained in:
@@ -225,7 +225,7 @@ class EditConf(Grammar):
|
|||||||
conffile = self[1]
|
conffile = self[1]
|
||||||
options = []
|
options = []
|
||||||
eq = "="
|
eq = "="
|
||||||
if self[3] and "-s" in self[3].string: eq = " "
|
if self[3] and "-s" in self[3].string: eq = " " ## try except # else err
|
||||||
for opt in re.split("\s+", self[4].string):
|
for opt in re.split("\s+", self[4].string):
|
||||||
k, v = opt.split("=", 1)
|
k, v = opt.split("=", 1)
|
||||||
v = re.sub(r"\n+", "", fixup_tokens(v)) # not sure why newlines are getting doubled
|
v = re.sub(r"\n+", "", fixup_tokens(v)) # not sure why newlines are getting doubled
|
||||||
|
|||||||
Reference in New Issue
Block a user