Skip to content

Commit

Permalink
Merge pull request #476 from rhubert/fix_git_status_exception
Browse files Browse the repository at this point in the history
git: handle encoding errors
  • Loading branch information
jkloetzke authored Jun 9, 2022
2 parents 0e9bfbe + a8af2e3 commit f4bb49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pym/bob/scm/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def callGit(self, workspacePath, *args, check=True):
cwd = os.path.join(workspacePath, self.__dir)
try:
output = subprocess.check_output(cmdLine, cwd=cwd,
universal_newlines=True, stderr=subprocess.DEVNULL)
universal_newlines=True, stderr=subprocess.DEVNULL, errors='replace')
except subprocess.CalledProcessError as e:
if check:
raise BuildError("git error:\n Directory: '{}'\n Command: '{}'\n'{}'".format(
Expand Down

0 comments on commit f4bb49c

Please sign in to comment.