From 34678f1076b86cf873e4b983255f02bcce7160b4 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 11 Dec 2008 09:56:22 +0000 Subject: [PATCH] Ignore blank lines in auth file --- deluge/core/authmanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/core/authmanager.py b/deluge/core/authmanager.py index c2232cc5b..6b6347ef6 100644 --- a/deluge/core/authmanager.py +++ b/deluge/core/authmanager.py @@ -84,5 +84,8 @@ class AuthManager(component.Component): if line.startswith("#"): # This is a comment line continue - username, password = line.split(":") + try: + username, password = line.split(":") + except ValueError: + continue self.auth[username.strip()] = password.strip()