Ignore blank lines in auth file

This commit is contained in:
Andrew Resch 2008-12-11 09:56:22 +00:00
parent c0bf133ab8
commit 34678f1076
1 changed files with 4 additions and 1 deletions

View File

@ -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()