From 7a206421b4096d142af0dd193064ac01868c0f77 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 12 Aug 2008 19:50:50 -0700 Subject: [PATCH] CLI: tolerate blank lines in the aliases file --- src/allmydata/scripts/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/scripts/common.py b/src/allmydata/scripts/common.py index 54b195cd..a6d0a109 100644 --- a/src/allmydata/scripts/common.py +++ b/src/allmydata/scripts/common.py @@ -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 -- 2.45.2