Make decode safe against null values

This commit is contained in:
Fabio Manganiello 2018-10-06 23:37:26 +02:00
parent 8497cd3863
commit c10e882dd0

View file

@ -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))
}