From cdad148bd0ac5fc40e2bcf57335f6a8ffee2054a Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 28 Jul 2014 10:24:43 +0200 Subject: [PATCH] =?UTF-8?q?else=20if=20=E2=86=92=20elif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- radicale/__main__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/radicale/__main__.py b/radicale/__main__.py index 7b3cc20..2f23636 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -104,9 +104,8 @@ def run(): pid = os.fork() if pid: sys.exit() - else: - if config.get("server", "pid"): - open(config.get("server", "pid"), "w").write(str(pid)) + elif config.get("server", "pid"): + open(config.get("server", "pid"), "w").write(str(pid)) sys.stdout = sys.stderr = open(os.devnull, "w") # Register exit function