mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: Update check_and_open_urls to handle exceptions with user-friendly messages
This commit is contained in:
parent
66ad186edd
commit
929aeb22bf
1 changed files with 1 additions and 0 deletions
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue