Skip to content

Commit

Permalink
replace type and __type__ in type error (#1035)
Browse files Browse the repository at this point in the history
Signed-off-by: Yotam Perlitz <yotam.perlitz@ibm.com>
Signed-off-by: Benjamin Sznajder <benjams@il.ibm.com>
  • Loading branch information
perlitz authored and BenjSz committed Jul 29, 2024
1 parent 3c146b1 commit ab7c806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unitxt/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(self, type) -> None:
class MissingArtifactTypeError(ValueError):
def __init__(self, dic) -> None:
message = (
f"Missing 'type' parameter. Expected 'type' in artifact dict, got {dic}"
f"Missing '__type__' parameter. Expected 'type' in artifact dict, got {dic}"
)
super().__init__(message)

Expand Down

0 comments on commit ab7c806

Please sign in to comment.