Skip to content

Commit d0b94df

Browse files
committed
Handle encoding errors when executing subprocesses with praktika
1 parent eae5b75 commit d0b94df

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ci/praktika/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def get_output(cls, command, strict=False, verbose=False):
172172
stderr=subprocess.PIPE,
173173
text=True,
174174
executable="/bin/bash",
175+
errors='ignore',
175176
)
176177
if res.stderr:
177178
print(f"WARNING: stderr: {res.stderr.strip()}")
@@ -191,6 +192,7 @@ def get_res_stdout_stderr(cls, command, verbose=True, strip=True):
191192
stdout=subprocess.PIPE,
192193
stderr=subprocess.PIPE,
193194
text=True,
195+
errors='ignore',
194196
)
195197
if strip:
196198
return res.returncode, res.stdout.strip(), res.stderr.strip()

0 commit comments

Comments
 (0)