Commit 754028bb authored by ibuler's avatar ibuler

[Bugfix] 临时解决一下vim报错

parent f4b7b279
......@@ -163,9 +163,12 @@ class TtyIOParser(object):
for d in data:
self.stream.feed(d)
for line in self.screen.display:
if line.strip():
output.append(line)
try:
for line in self.screen.display:
if line.strip():
output.append(line)
except IndexError:
pass
self.screen.reset()
return sep.join(output[0:-1]).strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment