diff --git a/aider/io.py b/aider/io.py index 5ab11f0d6..ce82c5bd2 100644 --- a/aider/io.py +++ b/aider/io.py @@ -368,6 +368,7 @@ class InputOutput: return self.read_image(filename) try: + # ignore decoding errors. ai! with open(str(filename), "r", encoding=self.encoding) as f: return f.read() except FileNotFoundError: