mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
cleanup
This commit is contained in:
parent
966a613ffe
commit
129f5fae76
1 changed files with 0 additions and 3 deletions
|
@ -319,10 +319,7 @@ class InputOutput:
|
||||||
with open(str(filename), "r", encoding=self.encoding) as f:
|
with open(str(filename), "r", encoding=self.encoding) as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
import traceback
|
|
||||||
|
|
||||||
self.tool_error(f"{filename}: unable to read: {err}")
|
self.tool_error(f"{filename}: unable to read: {err}")
|
||||||
self.tool_error("Traceback:\n" + "".join(traceback.format_stack()))
|
|
||||||
return
|
return
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
self.tool_error(f"{filename}: file not found error")
|
self.tool_error(f"{filename}: file not found error")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue