fix update-translations.py to work correctly with % at the end of a string
This commit is contained in:
parent
0002fd1d6e
commit
06c1524e89
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user