From d1ec4392a28de0853d8c111657f4992e7452187b Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 29 Dec 2023 15:35:59 -0800 Subject: [PATCH] Make deserializing exception more descriptive (#288) --- pycardano/plutus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycardano/plutus.py b/pycardano/plutus.py index d515118d..62ebaf73 100644 --- a/pycardano/plutus.py +++ b/pycardano/plutus.py @@ -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 = []