Try to fix colab encoding error

This commit is contained in:
litagin02
2024-03-01 20:10:23 +09:00
parent beb6a641be
commit 8b17d4de32

View File

@@ -14,6 +14,7 @@ def run_script_with_log(cmd: list[str], ignore_warning=False) -> tuple[bool, str
stdout=SAFE_STDOUT, # type: ignore stdout=SAFE_STDOUT, # type: ignore
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
text=True, text=True,
encoding="utf-8",
) )
if result.returncode != 0: if result.returncode != 0:
logger.error(f"Error: {' '.join(cmd)}\n{result.stderr}") logger.error(f"Error: {' '.join(cmd)}\n{result.stderr}")