From aa0f41ac1736916267be2142f883fa4b59fe6077 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 31 Jan 2012 02:09:48 +0000 Subject: [PATCH] Cleaner log entry if deluged missing --- deluge/ui/client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index 2ea2d3b9e..8be7aaed5 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -665,7 +665,12 @@ class Client(object): else: subprocess.call(["deluged", "--port=%s" % port, "--config=%s" % config]) except OSError, e: - log.exception(e) + from errno import ENOENT + if e.errno == ENOENT: + log.error(_("Deluge cannot find the 'deluged' executable, it is likely \ +that you forgot to install the deluged package or it's not in your PATH.")) + else: + log.exception(e) raise e except Exception, e: log.error("Unable to start daemon!")