diff --git a/platypush/message/__init__.py b/platypush/message/__init__.py index 6dd3a65db..e08a75a5d 100644 --- a/platypush/message/__init__.py +++ b/platypush/message/__init__.py @@ -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):