From 503a590e66a10c3fad23ffa0df7e71eea8854e37 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 26 Jan 2022 09:09:53 +0200 Subject: Fixing TypeError in GraphCommands.explain (#1901) --- redis/commands/graph/commands.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'redis/commands/graph/commands.py') 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): -- cgit v1.2.1