Skip to content

Commit caee8ac

Browse files
committed
Accept empty values for restoration
1 parent 54ec756 commit caee8ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pycardano/serialization.py

-3
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,6 @@ def from_primitive(cls: Type[DictBase], value: dict) -> DictBase:
896896
Raises:
897897
DeserializeException: When the object could not be restored from primitives.
898898
"""
899-
if not value:
900-
raise DeserializeException(f"Cannot accept empty value {value}.")
901-
902899
restored = cls()
903900
for k, v in value.items():
904901
k = (

0 commit comments

Comments
 (0)