From 5e080bedb67d53d09da2ec74443d071d2982866d Mon Sep 17 00:00:00 2001 From: David Duque Date: Thu, 16 Apr 2020 22:21:33 +0100 Subject: [PATCH] Syntax errors. --- management/daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/daemon.py b/management/daemon.py index d0dc2819..94a16ecc 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -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)