diff --git a/redis/commands/graph/query_result.py b/redis/commands/graph/query_result.py index b88b4b656c..7c7f58b99f 100644 --- a/redis/commands/graph/query_result.py +++ b/redis/commands/graph/query_result.py @@ -270,7 +270,7 @@ def parse_boolean(self, value): """ value = value.decode() if isinstance(value, bytes) else value try: - scalar = strtobool(value) + scalar = True if strtobool(value) else False except ValueError: sys.stderr.write("unknown boolean type\n") scalar = None