Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Sep 8, 2024
2 parents 9982f43 + ab35e47 commit 99dc235
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions aider/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ def run_cmd(self, cmd, rel_fname, code):
cmd += " " + rel_fname
cmd = cmd.split()

process = subprocess.Popen(
cmd,
cwd=self.root,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
encoding=self.encoding,
errors="replace",
)
try:
process = subprocess.Popen(
cmd,
cwd=self.root,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
encoding=self.encoding,
errors="replace",
)
except OSError as err:
print(f"Unable to execute lint command: {err}")
return
stdout, _ = process.communicate()
errors = stdout
if process.returncode == 0:
Expand Down

0 comments on commit 99dc235

Please sign in to comment.