Skip to content

Commit

Permalink
Merge pull request #23 from pSpitzner/main
Browse files Browse the repository at this point in the history
Fix for progress log, encodings might fail
  • Loading branch information
flarco authored Oct 14, 2024
2 parents 7b7159e + cf2e442 commit f5a6c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sling/sling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def _exec_cmd(cmd, stdin=None, stdout=PIPE, stderr=STDOUT, env:dict=None):
with Popen(cmd, shell=True, env=env, stdin=stdin, stdout=stdout, stderr=stderr) as proc:
if stdout and stdout != STDOUT and proc.stdout:
for line in proc.stdout:
line = str(line.strip(), 'utf-8')
line = str(line.strip(), 'utf-8', errors='replace')
yield line

proc.wait()
Expand Down

0 comments on commit f5a6c7c

Please sign in to comment.