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
1 changed files with 2 additions and 2 deletions

View File

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