From 6f7231f0ca11ad6fee6c40131bb13e1104718931 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 11 Dec 2008 10:04:25 +0000 Subject: [PATCH] Strip out new lines when reading auth file --- deluge/ui/common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/ui/common.py b/deluge/ui/common.py index 6e2eecc9d..80f042f69 100644 --- a/deluge/ui/common.py +++ b/deluge/ui/common.py @@ -132,9 +132,8 @@ def get_localhost_auth_uri(uri): u = urlparse.urlsplit(uri) for line in open(auth_file): try: - username, password = line.split(":") - except ValueError, e: - log.error("Error with auth entry %s", line) + username, password = line.strip().split(":") + except ValueError: continue if username == "localclient":