From 3fa6a8820aa8399ed118b530ae739fa5fc939429 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 29 Dec 2023 15:31:00 -0800 Subject: [PATCH] Make deserializing exception more descriptive --- 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 = []