From bfa296e7c58128d8a58ac5cd750c1ad8df5bc97e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 24 Apr 2023 01:18:17 +0200 Subject: [PATCH] Fixed dataclass JSON serialization --- platypush/message/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/message/__init__.py b/platypush/message/__init__.py index 6dd3a65db8..e08a75a5dd 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):