From 939520b3f80d5a649feb8bacbcbf52c4c8cbd8da Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sat, 25 Apr 2026 14:02:52 -0300 Subject: [PATCH] Stringify subprocess args in error message --- gamdl/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gamdl/utils.py b/gamdl/utils.py index 2a41b8b..adfd829 100644 --- a/gamdl/utils.py +++ b/gamdl/utils.py @@ -20,7 +20,9 @@ async def async_subprocess(*args: str, silent: bool = False) -> None: stdout, stderr = await proc.communicate() if proc.returncode != 0: - msg = f"Exited with code {proc.returncode}: {' '.join(args)}" + msg = ( + f"Exited with code {proc.returncode}: {' '.join(str(arg) for arg in args)}" + ) if stdout: msg += f"\nstdout:\n{stdout.decode()}"