Skip to content

Commit 94ac565

Browse files
committed
fix TypeError
1 parent 9f4bf4b commit 94ac565

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

redis/commands/graph/commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ def explain(self, query, params=None):
135135
query = self._build_params_header(params) + query
136136

137137
plan = self.execute_command("GRAPH.EXPLAIN", self.name, query)
138+
if isinstance(plan[0], bytes):
139+
plan = [b.decode() for b in plan]
138140
return "\n".join(plan)
139141

140142
def bulk(self, **kwargs):

0 commit comments

Comments
 (0)