mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
use offer_url
This commit is contained in:
parent
a66f31dc87
commit
42aac55b82
2 changed files with 2 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
|||
# ai
|
||||
import base64
|
||||
import os
|
||||
import webbrowser
|
||||
|
@ -488,7 +487,7 @@ class InputOutput:
|
|||
|
||||
def offer_url(self, url, prompt="Open URL for more info?"):
|
||||
"""Offer to open a URL in the browser, returns True if opened."""
|
||||
if url.rstrip(".',\"") in self.never_prompts:
|
||||
if url in self.never_prompts:
|
||||
return False
|
||||
if self.confirm_ask(prompt, subject=url, allow_never=True):
|
||||
webbrowser.open(url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue