1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-23 02:27:05 +00:00

error unless TRY used

This commit is contained in:
viogq 2019-09-18 13:00:29 +00:00 committed by GitHub
parent a70ba94b0c
commit 09d1feab80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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