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,
|
||||
capture_output=capture,
|
||||
text=True,
|
||||
errors='replace',
|
||||
timeout=timeout,
|
||||
check=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user