Skip to content

Commit dc3ae8c

Browse files
authored
Merge pull request #6 from pymodbus-dev/arg-completions
Don't raise error when there are no argument completions
2 parents 55565df + a3b5fe7 commit dc3ae8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymodbus_repl/client/completer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def get_completions(self, document, complete_event):
130130

131131
if " " in text:
132132
command = self.arg_completions(words, word_before_cursor)
133+
if not command:
134+
return
133135
commands = list(command.get_completion())
134136
commands = list(
135137
filter(lambda cmd: not (any(cmd in x for x in words)), commands)

0 commit comments

Comments
 (0)