mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
Syntax errors.
This commit is contained in:
parent
430f6dab38
commit
5e080bedb6
@ -535,7 +535,7 @@ def smtp_relay_get():
|
||||
def smtp_relay_set():
|
||||
config = utils.load_settings(env)
|
||||
newconf = request.form
|
||||
try
|
||||
try:
|
||||
# Write on Postfix config
|
||||
# Write on daemon env
|
||||
config["SMTP_RELAY_ENABLED"] = "true" if newconf.get("enabled") else "false"
|
||||
@ -545,7 +545,7 @@ def smtp_relay_set():
|
||||
utils.write_settings(config, env)
|
||||
# Restart Postfix
|
||||
return "OK"
|
||||
except Exception e:
|
||||
except Exception as e:
|
||||
return (str(e), 500)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user