Skip to content

Commit

Permalink
Avoid encoding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-couderc committed Nov 10, 2017
1 parent 88126f4 commit 72de95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def logged_call(command, verbose=False):
with subprocess.Popen(command, stdout=stdout, stderr=stderr, shell=True, bufsize=0) as process:
if verbose:
while process.poll() is None:
logger.info(os.read(process.stdout.fileno(), 1024).decode())
logger.info(os.read(process.stdout.fileno(), 1024).decode("utf-8", "ignore"))

# rehabilitate previous handler
for handler in logger.handlers:
Expand Down

0 comments on commit 72de95d

Please sign in to comment.