Skip to content

Commit f49a6ce

Browse files
committed
Why byte string and no match??
1 parent 8d790c3 commit f49a6ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/cmd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def run_pexpect(
255255

256256
log(ctx, f"child.pid: {child.pid}")
257257

258-
child.logfile_read = sys.stdout.buffer
258+
# child.logfile_read = sys.stdout.buffer
259259

260260
match = child.expect_exact(
261261
pattern = expect,
@@ -277,10 +277,10 @@ def run_pexpect(
277277
return_dict["return_code"] = child.exitstatus
278278
return_dict["signal_status"] = child.signalstatus
279279

280-
except pexpect.EOF:
280+
except pexpect.exceptions.EOF:
281281
log(ctx, f"pexpect child exited: {str(child)}")
282282

283-
except pexpect.TIMEOUT:
283+
except pexpect.exceptions.TIMEOUT:
284284
log(ctx, f"pexpect hit a timeout: {str(child)}", "error")
285285

286286
except:

0 commit comments

Comments
 (0)