bugfix: do not try to run shell when there is no completer
@@ -220,6 +220,9 @@ class Client:
based on redis response. eg: update key completer after ``keys``
raw_command
"""
+ if completer is None: # not in a tty
+ redis_command, shell_command = raw_command, None
+ else:
redis_command, shell_command = self.split_command_and_pipeline(
raw_command, completer.compiled_grammar
)
