diff options
-rw-r--r-- | src/msec/config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/msec/config.py b/src/msec/config.py index 3facc25..3cd635d 100644 --- a/src/msec/config.py +++ b/src/msec/config.py @@ -238,6 +238,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) @@ -329,6 +331,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) |