Skip to content

Commit cbf932c

Browse files
authored
Fix dictionary file extension detection for JSON (#339)
closes #335
1 parent 5e29bc7 commit cbf932c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

khiops/core/dictionary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def read_dictionary_file(dictionary_file_path):
416416
"""
417417
# Check the extension of the input dictionary file
418418
extension = os.path.splitext(dictionary_file_path)[1].lower()
419-
if extension not in [".kdic", ".kdicj", "json"]:
419+
if extension not in [".kdic", ".kdicj", ".json"]:
420420
raise ValueError(
421421
f"Input file must have extension 'kdic', 'kdicj' or 'json'."
422422
f"It has extension: '{extension}'."

0 commit comments

Comments
 (0)