This commit is contained in:
2025-08-31 18:47:55 +02:00
parent ad6572a7b8
commit ffd7549d29
+1 -1
View File
@@ -58,7 +58,7 @@ def load_dict_from_custom_format(file_path: str) -> dict:
result_dict = {} result_dict = {}
with open(file_path, 'r') as file: with open(file_path, 'r') as file:
for line in file: for line in file:
if line.strip() == "": if line.strip() == "" or line.startswith(";"):
continue continue
key, value = line.split(':', 1) key, value = line.split(':', 1)
result_dict[key.strip()] = value.strip() result_dict[key.strip()] = value.strip()