From c10e882dd0e8e509ad8c493353bb37e1314d6bb8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 6 Oct 2018 23:37:26 +0200 Subject: [PATCH] Make decode safe against null values --- 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 e976f47ef..56b987c45 100644 --- a/platypush/plugins/redis.py +++ b/platypush/plugins/redis.py @@ -48,7 +48,7 @@ class RedisPlugin(Plugin): """ return { - keys[i]: value.decode() + keys[i]: value.decode() if value else value for (i, value) in enumerate(self._get_redis().mget(keys, *args)) }