diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-03-14 15:43:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 15:43:02 +0200 |
commit | 160a7f6b951d2a11c17431cab34ee0457e128218 (patch) | |
tree | a3644afe5eb08b3c56ff63129fc206aab6493138 /redis/commands/graph/commands.py | |
parent | b4421101aeb19aebcfbcb66ac03314e4c535f063 (diff) | |
download | redis-py-160a7f6b951d2a11c17431cab34ee0457e128218.tar.gz |
fix TypeError (#2050)
Diffstat (limited to 'redis/commands/graph/commands.py')
-rw-r--r-- | redis/commands/graph/commands.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/commands/graph/commands.py b/redis/commands/graph/commands.py index baed1fc..2be46cd 100644 --- a/redis/commands/graph/commands.py +++ b/redis/commands/graph/commands.py @@ -194,6 +194,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 explain(self, query, params=None): |