Skip to content

Commit c1032ed

Browse files
Fix exception message
1 parent 60bd557 commit c1032ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jsonconfigparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __create_new_instace(cls,schema:dict, path_file:str):
2323
try:
2424
config = Schema(schema).validate(json.loads(file_buff))
2525
if not isinstance(config, dict):
26-
raise ConfigException("The first element's config should be a Map")
26+
raise ConfigException("The first config's element should be a Map")
2727
cls.__instance = cls.__dict_2_obj(config)
2828
except json.JSONDecodeError:
2929
raise ConfigException("{}".format("Wasn't possible to decode the json file:{}".format(path_file)))

0 commit comments

Comments
 (0)