Skip to content

Commit

Permalink
Fixing TypeError in GraphCommands.explain (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Jan 26, 2022
1 parent 9f4bf4b commit 503a590
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis/commands/graph/commands.py
Expand Up @@ -135,6 +135,8 @@ def explain(self, query, params=None):
query = self._build_params_header(params) + query

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

def bulk(self, **kwargs):
Expand Down

0 comments on commit 503a590

Please sign in to comment.