diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-05 23:06:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-05 23:06:06 +0300 |
commit | b68052337b3e41be74135518c598bf4aa0201343 (patch) | |
tree | e87d45519bbce774990f600f1d1fd0e8d10fadfb /lang/updatelang.py | |
parent | 99d0365064b9972afce8c60f30fe04c15416792a (diff) | |
download | evol-tools-b68052337b3e41be74135518c598bf4aa0201343.tar.gz evol-tools-b68052337b3e41be74135518c598bf4aa0201343.tar.bz2 evol-tools-b68052337b3e41be74135518c598bf4aa0201343.tar.xz evol-tools-b68052337b3e41be74135518c598bf4aa0201343.zip |
updatelang: fix crash if used unknown item.
Diffstat (limited to 'lang/updatelang.py')
-rwxr-xr-x | lang/updatelang.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py index dbb8950..d1e9bc6 100755 --- a/lang/updatelang.py +++ b/lang/updatelang.py @@ -52,11 +52,13 @@ def collectStrings(parentDir): m = strre3.findall(line) if len(m) > 0: for str in m: - allStrings.add(itemNamesByName[str.lower()]) + if str.lower() in itemNamesByName: + allStrings.add(itemNamesByName[str.lower()]) m = strre5.findall(line) if len(m) > 0: for str in m: - allStrings.add(itemNamesByName[str.lower()]) + if str.lower() in itemNamesByName: + allStrings.add(itemNamesByName[str.lower()]) m = strre6.findall(line) if len(m) > 0: for str in m: |