Skip to content

Commit

Permalink
Fixed missing key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan committed Mar 2, 2018
1 parent fb3bba0 commit 432a92b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/syncLang.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,10 @@ def __update_properties(self, main_property_file, other_property_files):
for line in main_lines:
key = main_keys.key_from_line(line)
if key is not None:
# Do not write empty keys
if keys[key] != "":
other_lines_to_write.append(Keys.format_key_and_value(key=key, value=keys[key]) + "\n")
if keys.has_key(key):
# Do not write empty keys
if keys[key] != "":
other_lines_to_write.append(Keys.format_key_and_value(key=key, value=keys[key]) + "\n")
else:
other_lines_to_write.append(line)

Expand Down

0 comments on commit 432a92b

Please sign in to comment.