From 387df7f1dbaadfc124f8fa369691840fdbefdc08 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 2 Sep 2024 11:41:10 -0700 Subject: [PATCH] fixes #1276 --- aider/run_cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/run_cmd.py b/aider/run_cmd.py index 2ed1a6159..b824c4edc 100644 --- a/aider/run_cmd.py +++ b/aider/run_cmd.py @@ -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