Skip to content

Commit 23b414f

Browse files
committed
fix(ont): attempt fix keyerror (#17)
1 parent 6c57283 commit 23b414f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ont.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def read_output(channel: Channel):
163163
continue
164164

165165
# command completed ("user#" input in data)
166-
if output.strip().endswith('#'):
166+
if output.strip().endswith('#') and len(output.strip().strip('\n').splitlines()) > 5:
167167
print('command completed')
168168
break
169169
sleep(0.05)

0 commit comments

Comments
 (0)