From 27e8780cbe7245d8a65084c2d8c42886a5e277ba Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 27 Aug 2024 09:02:25 -0700 Subject: [PATCH] style: Fix formatting in utils.py --- aider/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/utils.py b/aider/utils.py index bcb827bdf..9c723ba98 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -17,6 +17,7 @@ IMAGE_EXTENSIONS = {".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".webp"} def run_interactive_command(command): try: import pexpect + return run_interactive_command_pexpect(command) except ImportError: return run_interactive_command_subprocess(command) @@ -31,7 +32,7 @@ def run_interactive_command_subprocess(command): text=True, shell=True, encoding=sys.stdout.encoding, - errors="replace" + errors="replace", ) return result.returncode, result.stdout except Exception as e: