Skip to content

Commit

Permalink
Make deserializing exception more descriptive (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Dec 29, 2023
1 parent fdff5f2 commit d1ec439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycardano/plutus.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def _dfs(obj):
if "constructor" in obj:
if obj["constructor"] != cls.CONSTR_ID:
raise DeserializeException(
f"Mismatch between constructors, expect: {cls.CONSTR_ID}, "
f"Mismatch between constructors in class {cls.__name__}, expect: {cls.CONSTR_ID}, "
f"got: {obj['constructor']} instead."
)
converted_fields = []
Expand Down

0 comments on commit d1ec439

Please sign in to comment.