aboutsummaryrefslogtreecommitdiff
path: root/update.py
diff options
context:
space:
mode:
authorAlexander Hayden <alexhayden25@gmail.com>2019-02-02 10:43:44 -0500
committerAlexander Hayden <alexhayden25@gmail.com>2019-02-02 10:43:44 -0500
commit9b54f7454d2dc72cfac8ea708ac69113e2d75a33 (patch)
treeae81c6bed082893bf5605bd0f16c1615f62f7a14 /update.py
parent0d5c8a8d21eb6e2cd4bd9ebd8fd53aef13cfb52a (diff)
downloadmodpackman-9b54f7454d2dc72cfac8ea708ac69113e2d75a33.tar.gz
modpackman-9b54f7454d2dc72cfac8ea708ac69113e2d75a33.zip
No more die on empty lines
Diffstat (limited to 'update.py')
-rwxr-xr-xupdate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.py b/update.py
index c62b02f..373a839 100755
--- a/update.py
+++ b/update.py
@@ -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)