From 94ac5657450334706d90cb7c2c425617bfd9e640 Mon Sep 17 00:00:00 2001 From: dvora-h Date: Tue, 25 Jan 2022 14:13:57 +0200 Subject: [PATCH] fix TypeError --- redis/commands/graph/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redis/commands/graph/commands.py b/redis/commands/graph/commands.py index fa0a9da55f..157f628339 100644 --- a/redis/commands/graph/commands.py +++ b/redis/commands/graph/commands.py @@ -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):