From 68dcdf8ccd45760bf0f1b593e2fcd3af072ab872 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 20 Nov 2018 14:14:59 +0000 Subject: [PATCH] Enforced cast to string for any object posted to the Redis bus --- platypush/bus/redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/bus/redis.py b/platypush/bus/redis.py index cc11cac3..661f7fbc 100644 --- a/platypush/bus/redis.py +++ b/platypush/bus/redis.py @@ -39,7 +39,7 @@ class RedisBus(Bus): def post(self, msg): """ Sends a message to the Redis queue """ - return self.redis.rpush(self.redis_queue, msg) + return self.redis.rpush(self.redis_queue, str(msg)) # vim:sw=4:ts=4:et: