diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-22 15:08:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-22 15:08:51 +0300 |
commit | 10a20535bb797ce6559726806cbe34e328f6e798 (patch) | |
tree | efda2875cd259508c8c0781bb1bf66b161eecada /lang | |
parent | f7ceb4204b58d97cf8362cfbe2cd923cbfa00ae1 (diff) | |
download | evol-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-x | lang/updatelang.py | 2 |
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 |