diff options
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index aa1ca7e..c57af3b 100755 --- a/redis/client.py +++ b/redis/client.py @@ -283,7 +283,13 @@ def nativestr_or_none(response): def parse_stream_list(response): if response is None: return None - return [(r[0], pairs_to_dict(r[1])) for r in response] + data = [] + for r in response: + if r is not None: + data.append((r[0], pairs_to_dict(r[1]))) + else: + data.append((None, None)) + return data def pairs_to_dict_with_nativestr_keys(response): |