convert_to_wave: do not .split command

This commit is contained in:
bretello 2024-06-14 19:58:16 +02:00
parent 96d7ba1a9e
commit 0e907ef255
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

8
app.py
View File

@ -22,9 +22,13 @@ def convert_to_wav(file_name: str):
assert extension != "wav"
print(f"{extension=}")
command = f"tape2wav {file_name} ${output}.wav"
command = [
"tape2wav",
file_name,
f"${output}.wav",
]
try:
check_call(command.split())
check_call(command)
except CalledProcessError as exc:
print(f"tape2wav failed: {exc.output=}\n{exc.stderr=}")
raise