summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-01-26 09:09:53 +0200
committerGitHub <noreply@github.com>2022-01-26 09:09:53 +0200
commit503a590e66a10c3fad23ffa0df7e71eea8854e37 (patch)
treea2a116e15c784bd492783a5977391e0e42dac322
parent9f4bf4b018c9e5c46822cde4dc5db149e46ef1b1 (diff)
downloadredis-py-503a590e66a10c3fad23ffa0df7e71eea8854e37.tar.gz
Fixing TypeError in GraphCommands.explain (#1901)
-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):