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":