From 5ecb69227f3d08d10d9dec5b309a2f41bba1a205 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Thu, 3 Apr 2008 22:15:19 +0000 Subject: [PATCH] Fix config file parsing. Blank lines were messing thigns up. --- codemux.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codemux.py b/codemux.py index fa54d4e..1d907f7 100644 --- a/codemux.py +++ b/codemux.py @@ -102,7 +102,9 @@ def parseConf(conf = CODEMUXCONF): try: f = open(conf) for line in f.readlines(): - if line.startswith("#") or (len(line.split()) > 4): + if line.startswith("#") \ + or (len(line.split()) > 4) \ + or (len(line.split()) < 3): continue (host, slice, port) = line.split()[:3] logger.log("codemux: found %s in conf" % slice, 2) -- 2.43.0