diff --git a/aider/linter.py b/aider/linter.py index f94d37cc2..7f0d13dac 100644 --- a/aider/linter.py +++ b/aider/linter.py @@ -40,6 +40,7 @@ class Linter: def run_cmd(self, cmd, rel_fname): cmd += " " + rel_fname cmd = cmd.split() + try: subprocess.check_output(cmd, cwd=self.root).decode() return # zero exit status @@ -51,6 +52,8 @@ class Linter: res += "But if the command fixed all the issues itself, don't take further action.\n\n" res += errors + return res + def lint(self, fname): lang = filename_to_lang(fname) if not lang: