Merge pull request #233 from rbrisita/add_subprocess-check
Add Subprocess Check
This commit is contained in:
commit
e1e94ff4d5
|
@ -125,7 +125,7 @@ def export_audio_to_wav_ffmpeg(audio: bytearray, mime_type: str) -> str:
|
||||||
|
|
||||||
def run_command(command):
|
def run_command(command):
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
|
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True
|
||||||
)
|
)
|
||||||
return result.stdout, result.stderr
|
return result.stdout, result.stderr
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ def export_audio_to_wav_ffmpeg(audio: bytearray, mime_type: str) -> str:
|
||||||
|
|
||||||
def run_command(command):
|
def run_command(command):
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
|
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True
|
||||||
)
|
)
|
||||||
return result.stdout, result.stderr
|
return result.stdout, result.stderr
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ def export_audio_to_wav_ffmpeg(audio: bytearray, mime_type: str) -> str:
|
||||||
|
|
||||||
def run_command(command):
|
def run_command(command):
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
|
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True
|
||||||
)
|
)
|
||||||
return result.stdout, result.stderr
|
return result.stdout, result.stderr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue