fix update-translations.py to work correctly with % at the end of a string

This commit is contained in:
UdjinM6 2015-08-22 22:00:04 +03:00
parent 0002fd1d6e
commit 06c1524e89

View File

@ -49,7 +49,10 @@ def find_format_specifiers(s):
percent = s.find('%', pos) percent = s.find('%', pos)
if percent < 0: if percent < 0:
break break
specifiers.append(s[percent+1]) try:
specifiers.append(s[percent+1])
except:
print('Failed to get specifier')
pos = percent+2 pos = percent+2
return specifiers return specifiers