diff --git a/src/read_localization_file.py b/src/read_localization_file.py index 437b0a0..a97c02b 100644 --- a/src/read_localization_file.py +++ b/src/read_localization_file.py @@ -6,6 +6,8 @@ def file_to_keys_and_values(absolute_file_path): """ with open(absolute_file_path, "r", encoding="utf8") as f: lines = f.readlines() + if len(lines) == 0: + return dict(), "" res = dict() for i in range(len(lines)): try: