Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Aider-AI/aider
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Jan 13, 2025
2 parents bbcde55 + 939cb79 commit 4b03b0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aider/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ def read_text(self, filename, silent=False):
try:
with open(str(filename), "r", encoding=self.encoding) as f:
return f.read()
except OSError as err:
if not silent:
self.tool_error(f"{filename}: unable to read: {err}")
return
except FileNotFoundError:
if not silent:
self.tool_error(f"{filename}: file not found error")
Expand All @@ -364,6 +360,10 @@ def read_text(self, filename, silent=False):
if not silent:
self.tool_error(f"{filename}: is a directory")
return
except OSError as err:
if not silent:
self.tool_error(f"{filename}: unable to read: {err}")
return
except UnicodeError as e:
if not silent:
self.tool_error(f"{filename}: {e}")
Expand Down

0 comments on commit 4b03b0a

Please sign in to comment.