mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
Refactored linting process to handle FileNotFoundError exceptions.
This commit is contained in:
parent
38de35e924
commit
fec1a646d5
1 changed files with 7 additions and 1 deletions
|
@ -170,7 +170,13 @@ class Commands:
|
||||||
self.cmd_commit("")
|
self.cmd_commit("")
|
||||||
|
|
||||||
for fname in fnames:
|
for fname in fnames:
|
||||||
errors = self.coder.linter.lint(fname)
|
try:
|
||||||
|
errors = self.coder.linter.lint(fname)
|
||||||
|
except FileNotFoundError as err:
|
||||||
|
self.io.tool_error(f"Unable to lint {fname}")
|
||||||
|
self.io.tool_error(err)
|
||||||
|
continue
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
self.io.tool_error(errors)
|
self.io.tool_error(errors)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue