Skip to content

Commit da49a0f

Browse files
author
Jan Zmeskal
authored
Make sure CommandReader gets RC (#128)
1 parent c43968b commit da49a0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rrmngmnt/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ def read_lines(self):
8686
while True:
8787
line = out.readline()
8888
self.out += line
89-
if not line:
89+
if line:
90+
yield line.strip('\n')
91+
continue
92+
if command.rc is not None:
9093
break
91-
yield line.strip('\n')
9294
self.rc = command.rc
9395
self.err = err.read()

0 commit comments

Comments
 (0)