Skip to content

Commit

Permalink
Troubleshooting RuntimeExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 3, 2023
1 parent 87fed73 commit c3c27b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neon_minerva/integration/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def send_prompt(self, prompt: str):
"lang": self.lang}, context), timeout=self._stt_timeout)
LOG.info(resp.data)
if prompt not in resp.data['transcripts']:
raise RuntimeError(f"Invalid transcription for '{prompt}': {resp.data['utterances']}")
LOG.warning(f"Invalid transcription for '{prompt}': {resp.data['transcripts']}")
else:
self.core_bus.emit(Message("recognizer_loop:utterance",
{"utterances": [prompt],
Expand Down

0 comments on commit c3c27b5

Please sign in to comment.