CLI: tolerate blank lines in the aliases file

This commit is contained in:
Brian Warner 2008-08-12 19:50:50 -07:00
parent bcbb51fe4a
commit 7a206421b4

View File

@ -86,7 +86,7 @@ def get_aliases(nodedir):
f = open(aliasfile, "r")
for line in f.readlines():
line = line.strip()
if line.startswith("#"):
if line.startswith("#") or not line:
continue
name, cap = line.split(":", 1)
# normalize it: remove http: prefix, urldecode