summaryrefslogtreecommitdiff
path: root/redis/commands/graph/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/graph/commands.py')
-rw-r--r--redis/commands/graph/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/commands/graph/commands.py b/redis/commands/graph/commands.py
index fa0a9da..157f628 100644
--- a/redis/commands/graph/commands.py
+++ b/redis/commands/graph/commands.py
@@ -135,6 +135,8 @@ class GraphCommands:
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):