From 0e907ef25507f82a55597e4d7af0ffb584b6d93d Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 14 Jun 2024 19:58:16 +0200 Subject: [PATCH] convert_to_wave: do not .split command --- app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 4b91552..19af596 100644 --- a/app.py +++ b/app.py @@ -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