Skip to content

Commit

Permalink
fix: correct config name in validate error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vTuanpham committed Dec 30, 2023
1 parent 5668f75 commit 610b57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translator/data_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def validate(self, keys: List[str]) -> bool:
dict_fields = self.target_config.get_keys()
for key in dict_fields:
assert key in keys, f"\n Invalid parser, the key '{key}' is missing from {dict_fields}\n" \
f"you can adjust the fields {self.target_config.__class__.__name__} in the 'configs/*.py'" \
f"you can adjust the fields {self.target_config.__name__} in the 'configs/*.py'" \
f" or fill in the missing field"
return True

Expand Down

0 comments on commit 610b57a

Please sign in to comment.