mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Make playwright obey the --no-verify-ssl
switch
This commit is contained in:
parent
97e51e60fc
commit
cb819e8db1
3 changed files with 10 additions and 4 deletions
|
@ -232,6 +232,7 @@ class Coder:
|
|||
attribute_commit_message=False,
|
||||
aider_commit_hashes=None,
|
||||
map_mul_no_files=8,
|
||||
verify_ssl=True,
|
||||
):
|
||||
if not fnames:
|
||||
fnames = []
|
||||
|
@ -284,7 +285,7 @@ class Coder:
|
|||
|
||||
self.show_diffs = show_diffs
|
||||
|
||||
self.commands = Commands(self.io, self, voice_language)
|
||||
self.commands = Commands(self.io, self, voice_language, verify_ssl=verify_ssl)
|
||||
|
||||
if use_git:
|
||||
try:
|
||||
|
|
|
@ -24,10 +24,11 @@ class Commands:
|
|||
voice = None
|
||||
scraper = None
|
||||
|
||||
def __init__(self, io, coder, voice_language=None):
|
||||
def __init__(self, io, coder, voice_language=None, verify_ssl=True):
|
||||
self.io = io
|
||||
self.coder = coder
|
||||
|
||||
self.verify_ssl = verify_ssl
|
||||
if voice_language == "auto":
|
||||
voice_language = None
|
||||
|
||||
|
@ -69,7 +70,9 @@ class Commands:
|
|||
if not res:
|
||||
self.io.tool_error("Unable to initialize playwright.")
|
||||
|
||||
self.scraper = Scraper(print_error=self.io.tool_error, playwright_available=res)
|
||||
self.scraper = Scraper(
|
||||
print_error=self.io.tool_error, playwright_available=res, verify_ssl=self.verify_ssl
|
||||
)
|
||||
|
||||
content = self.scraper.scrape(url) or ""
|
||||
# if content:
|
||||
|
@ -325,7 +328,8 @@ class Commands:
|
|||
prev_commit.tree[fname]
|
||||
except KeyError:
|
||||
self.io.tool_error(
|
||||
f"The file {fname} was not in the repository in the previous commit. Cannot undo safely."
|
||||
f"The file {fname} was not in the repository in the previous commit. Cannot"
|
||||
" undo safely."
|
||||
)
|
||||
return
|
||||
|
||||
|
|
|
@ -487,6 +487,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
attribute_author=args.attribute_author,
|
||||
attribute_committer=args.attribute_committer,
|
||||
attribute_commit_message=args.attribute_commit_message,
|
||||
verify_ssl=args.verify_ssl,
|
||||
)
|
||||
|
||||
except ValueError as err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue