more robust ouput_grabber
This commit is contained in:
1 parent
1e95f70386
commit
11c1c8490c
2 files changed
+2
-2
No files matched your search
@@ -72,7 +72,7 @@ class OutputGrabber(object):
|
||||
and save the text in `capturedtext`.
|
||||
"""
|
||||
while True:
|
||||
char = os.read(self.pipe_out,1).decode(self.origstream.encoding)
|
||||
char = os.read(self.pipe_out,1).decode(self.origstream.encoding, errors='replace')
|
||||
if not char or self.escape_char in char:
|
||||
break
|
||||
self.capturedtext += char
|
||||
Reference in new issue
Block a user