mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
CLI: tolerate blank lines in the aliases file
This commit is contained in:
parent
bcbb51fe4a
commit
7a206421b4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user