mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 13:15:00 +00:00
fix: handle ValueError exception in run_cmd_pexpect function
This commit is contained in:
parent
c152c96fcc
commit
484fdd7aa3
1 changed files with 1 additions and 1 deletions
|
@ -126,6 +126,6 @@ def run_cmd_pexpect(command, verbose=False):
|
|||
child.close()
|
||||
return child.exitstatus, output.getvalue().decode("utf-8", errors="replace")
|
||||
|
||||
except (pexpect.ExceptionPexpect, TypeError) as e:
|
||||
except (pexpect.ExceptionPexpect, TypeError, ValueError) as e:
|
||||
error_msg = f"Error running command {command}: {e}"
|
||||
return 1, error_msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue