diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 21d951493..a70b63665 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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: diff --git a/aider/commands.py b/aider/commands.py index 1dd429eb0..a4cb8f5f1 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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 diff --git a/aider/main.py b/aider/main.py index 11622a8d2..f5e26a863 100644 --- a/aider/main.py +++ b/aider/main.py @@ -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: