From c2be1cf6e8c15686b213303c4ca36e479ae52a0f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 20 Nov 2018 14:18:58 +0000 Subject: [PATCH] Enforced cast to string for any object posted to the Redis bus --- platypush/plugins/redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/redis.py b/platypush/plugins/redis.py index 56b987c4..dfce8d51 100644 --- a/platypush/plugins/redis.py +++ b/platypush/plugins/redis.py @@ -39,7 +39,7 @@ class RedisPlugin(Plugin): """ redis = Redis(*args, **kwargs) - redis.rpush(queue, msg) + redis.rpush(queue, str(msg)) @action def mget(self, keys, *args):