Skip to content

Commit ac1a026

Browse files
committed
Don't raise error when there are no argument completions
1 parent a75dc4c commit ac1a026

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)