diff options
author | Alexander Hayden <alexhayden25@gmail.com> | 2019-02-02 10:43:44 -0500 |
---|---|---|
committer | Alexander Hayden <alexhayden25@gmail.com> | 2019-02-02 10:43:44 -0500 |
commit | 9b54f7454d2dc72cfac8ea708ac69113e2d75a33 (patch) | |
tree | ae81c6bed082893bf5605bd0f16c1615f62f7a14 /update.py | |
parent | 0d5c8a8d21eb6e2cd4bd9ebd8fd53aef13cfb52a (diff) | |
download | modpackman-9b54f7454d2dc72cfac8ea708ac69113e2d75a33.tar.gz modpackman-9b54f7454d2dc72cfac8ea708ac69113e2d75a33.zip |
No more die on empty lines
Diffstat (limited to 'update.py')
-rwxr-xr-x | update.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -71,7 +71,7 @@ def read_file(fil): with open(fil) as f: for line in f: string = line.strip().split() - if len(line) >= 1 and line[0] != '#': + if len(line) > 1 and line[0] != '#': # run strip on each element string = tuple(map(lambda x: x.strip(), string)) strings.append(string) |