From: Brian Warner Date: Wed, 13 Aug 2008 02:50:50 +0000 (-0700) Subject: CLI: tolerate blank lines in the aliases file X-Git-Url: https://git.rkrishnan.org/(%5B%5E?a=commitdiff_plain;h=7a206421b4096d142af0dd193064ac01868c0f77;p=tahoe-lafs%2Ftahoe-lafs.git CLI: tolerate blank lines in the aliases file --- 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