1
0
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:
David Duque 2020-04-16 22:21:33 +01:00
parent 430f6dab38
commit 5e080bedb6
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A

View File

@ -535,7 +535,7 @@ def smtp_relay_get():
def smtp_relay_set(): def smtp_relay_set():
config = utils.load_settings(env) config = utils.load_settings(env)
newconf = request.form newconf = request.form
try try:
# Write on Postfix config # Write on Postfix config
# Write on daemon env # Write on daemon env
config["SMTP_RELAY_ENABLED"] = "true" if newconf.get("enabled") else "false" config["SMTP_RELAY_ENABLED"] = "true" if newconf.get("enabled") else "false"
@ -545,7 +545,7 @@ def smtp_relay_set():
utils.write_settings(config, env) utils.write_settings(config, env)
# Restart Postfix # Restart Postfix
return "OK" return "OK"
except Exception e: except Exception as e:
return (str(e), 500) return (str(e), 500)