aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/msec/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/msec/config.py b/src/msec/config.py
index 74e4d08..9ea5526 100644
--- a/src/msec/config.py
+++ b/src/msec/config.py
@@ -231,6 +231,8 @@ class MsecConfig:
return False
for line in fd.readlines():
line = line.strip()
+ if not line:
+ continue
if line[0] == "#":
# comment
self.comments.append(line)
@@ -322,6 +324,8 @@ class PermConfig(MsecConfig):
return False
for line in fd.readlines():
line = line.strip()
+ if not line:
+ continue
if line[0] == "#":
# comment
self.comments.append(line)