Enforced cast to string for any object posted to the Redis bus

This commit is contained in:
Fabio Manganiello 2018-11-20 14:14:59 +00:00
parent 4209385e01
commit 68dcdf8ccd
1 changed files with 1 additions and 1 deletions

View File

@ -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: