summaryrefslogtreecommitdiff
path: root/lang/updatelang.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-05 23:06:06 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-05 23:06:06 +0300
commitb68052337b3e41be74135518c598bf4aa0201343 (patch)
treee87d45519bbce774990f600f1d1fd0e8d10fadfb /lang/updatelang.py
parent99d0365064b9972afce8c60f30fe04c15416792a (diff)
downloadevol-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-xlang/updatelang.py6
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: