Skip to content

Commit

Permalink
Merge pull request OpenInterpreter#233 from rbrisita/add_subprocess-c…
Browse files Browse the repository at this point in the history
…heck

Add Subprocess Check
  • Loading branch information
tyfiero authored Apr 17, 2024
2 parents 1324789 + b24d48f commit e1e94ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion software/source/server/services/stt/local-whisper/stt.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def export_audio_to_wav_ffmpeg(audio: bytearray, mime_type: str) -> str:

def run_command(command):
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

Expand Down
2 changes: 1 addition & 1 deletion software/source/server/services/stt/openai/stt.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def export_audio_to_wav_ffmpeg(audio: bytearray, mime_type: str) -> str:

def run_command(command):
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

Expand Down
2 changes: 1 addition & 1 deletion software/source/server/utils/bytes_to_wav.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def export_audio_to_wav_ffmpeg(audio: bytearray, mime_type: str) -> str:

def run_command(command):
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

Expand Down

0 comments on commit e1e94ff

Please sign in to comment.