mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
Handled FileNotFoundError exception when running flake8 linter.
This commit is contained in:
parent
b0821bb705
commit
f2b197a69f
1 changed files with 4 additions and 1 deletions
|
@ -88,7 +88,10 @@ class Linter:
|
|||
fatal = "E9,F821,F823,F831,F406,F407,F701,F702,F704,F706"
|
||||
flake8 = f"flake8a --select={fatal} --show-source"
|
||||
|
||||
return self.run_cmd(flake8, rel_fname, code)
|
||||
try:
|
||||
return self.run_cmd(flake8, rel_fname, code)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
||||
def lint_python_compile(fname, code):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue