forked from platypush/platypush
Make decode safe against null values
This commit is contained in:
parent
8497cd3863
commit
c10e882dd0
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue