This commit is contained in:
Paul Gauthier 2024-09-02 11:41:10 -07:00
parent 4063015560
commit 387df7f1db

View file

@ -84,6 +84,6 @@ def run_cmd_pexpect(command, verbose=False):
child.close()
return child.exitstatus, output.getvalue().decode("utf-8", errors="replace")
except pexpect.ExceptionPexpect as e:
error_msg = f"Error running command: {e}"
except (pexpect.ExceptionPexpect, TypeError) as e:
error_msg = f"Error running command {command}: {e}"
return 1, error_msg