Skip to content

Commit d1ec439

Browse files
authored
Make deserializing exception more descriptive (#288)
1 parent fdff5f2 commit d1ec439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/plutus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def _dfs(obj):
631631
if "constructor" in obj:
632632
if obj["constructor"] != cls.CONSTR_ID:
633633
raise DeserializeException(
634-
f"Mismatch between constructors, expect: {cls.CONSTR_ID}, "
634+
f"Mismatch between constructors in class {cls.__name__}, expect: {cls.CONSTR_ID}, "
635635
f"got: {obj['constructor']} instead."
636636
)
637637
converted_fields = []

0 commit comments

Comments
 (0)