From 929aeb22bf9089aa6d903172d27ea0dbe2450129 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 1 Nov 2024 09:08:56 -0700 Subject: [PATCH] refactor: Update check_and_open_urls to handle exceptions with user-friendly messages --- aider/coders/base_coder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 168b1d1ca..0113f3350 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -790,6 +790,7 @@ class Coder: self.num_reflections += 1 message = self.reflected_message + # ai: have this take the exception, not the string; based on the exception type offer a simple english explanation for what went wrong (usually placing blame on the API provider); then offer to open any URLs as is done currently! def check_and_open_urls(self, text: str) -> List[str]: """Check text for URLs and offer to open them in a browser."""