forked from platypush/platypush
Fixed dataclass JSON serialization
This commit is contained in:
parent
9c03b028d7
commit
bfa296e7c5
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class Message:
|
|||
return obj.value
|
||||
|
||||
if is_dataclass(obj):
|
||||
obj = asdict(obj)
|
||||
return asdict(obj)
|
||||
|
||||
# Don't serialize I/O wrappers/objects
|
||||
if isinstance(obj, io.IOBase):
|
||||
|
|
Loading…
Reference in a new issue