Skip to content

Commit 8a49069

Browse files
committed
sentinel info should be a string in python3
1 parent 05508e6 commit 8a49069

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def parse_sentinel_state(item):
146146
def parse_sentinel(response, **options):
147147
"Parse the result of Redis's SENTINEL command"
148148
parse = options.get('parse')
149+
response = nativestr(response)
149150
if parse == 'SENTINEL_INFO':
150151
return [parse_sentinel_state(item) for item in response]
151152
elif parse == 'SENTINEL_INFO_MASTERS':

0 commit comments

Comments
 (0)