summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-22 15:08:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-22 15:08:51 +0300
commit10a20535bb797ce6559726806cbe34e328f6e798 (patch)
treeefda2875cd259508c8c0781bb1bf66b161eecada /lang
parentf7ceb4204b58d97cf8362cfbe2cd923cbfa00ae1 (diff)
downloadevol-tools-10a20535bb797ce6559726806cbe34e328f6e798.tar.gz
evol-tools-10a20535bb797ce6559726806cbe34e328f6e798.tar.bz2
evol-tools-10a20535bb797ce6559726806cbe34e328f6e798.tar.xz
evol-tools-10a20535bb797ce6559726806cbe34e328f6e798.zip
lang: fix crash on empty lines in item db.
Diffstat (limited to 'lang')
-rwxr-xr-xlang/updatelang.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py
index 4106c13..ce824c4 100755
--- a/lang/updatelang.py
+++ b/lang/updatelang.py
@@ -318,6 +318,8 @@ def loadItemDb(dir):
itemName = ""
for line in f:
line = line.strip()
+ if len(line) < 1:
+ continue
if line[0] == "}":
if itemId != "" and itemName != "":
itemNamesByName[itemName.lower()] = itemName