Skip to content

Commit 15e0125

Browse files
suparekswilly22
authored andcommitted
fix error occur when decode_responses=True (#27)
1 parent 6c09044 commit 15e0125

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: redisgraph/query_result.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def _retrieve_data_from_statistics(self, statistics):
5454
@staticmethod
5555
def _get_value(prop, statistics):
5656
for stat in statistics:
57-
stat = stat.decode()
57+
if isinstance(stat,bytes):
58+
stat = stat.decode()
5859
if prop in stat:
5960
return float(stat.split(': ')[1].split(' ')[0])
6061

0 commit comments

Comments
 (0)