Skip to content

Commit

Permalink
fix TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Jan 25, 2022
1 parent 9f4bf4b commit 94ac565
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis/commands/graph/commands.py
Original file line number Diff line number Diff line change
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 94ac565

Please sign in to comment.