We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d790c3 commit f49a6ceCopy full SHA for f49a6ce
src/utils/cmd.py
@@ -255,7 +255,7 @@ def run_pexpect(
255
256
log(ctx, f"child.pid: {child.pid}")
257
258
- child.logfile_read = sys.stdout.buffer
+ # child.logfile_read = sys.stdout.buffer
259
260
match = child.expect_exact(
261
pattern = expect,
@@ -277,10 +277,10 @@ def run_pexpect(
277
return_dict["return_code"] = child.exitstatus
278
return_dict["signal_status"] = child.signalstatus
279
280
- except pexpect.EOF:
+ except pexpect.exceptions.EOF:
281
log(ctx, f"pexpect child exited: {str(child)}")
282
283
- except pexpect.TIMEOUT:
+ except pexpect.exceptions.TIMEOUT:
284
log(ctx, f"pexpect hit a timeout: {str(child)}", "error")
285
286
except:
0 commit comments