fix: add errors='replace' to subprocess.run for non-utf8 locales
This commit is contained in:
@@ -35,6 +35,7 @@ def run(cmd, cwd=None, env=None, check=True, capture=True, shell=True, timeout=3
|
|||||||
shell=shell,
|
shell=shell,
|
||||||
capture_output=capture,
|
capture_output=capture,
|
||||||
text=True,
|
text=True,
|
||||||
|
errors='replace',
|
||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user